Hi, everyone.
What's the latest and least verbose way to
- Read from stdin until '\n' (or line break) is detected and storing into a string? For example:
string input = readln();
- Read until EOF is reached and storing it into a string? For example:
string result; foreach(string line; lines(stdin)) result ~= line;