On Saturday, 28 December 2013 at 17:07:23 UTC, Andrei Alexandrescu wrote:
On 12/28/13 8:49 AM, Jeroen Bollen wrote:
Why is when you do readln() the newline character (\n) gets read too? Wouldn't it make more sense for that character to be stripped off?

So you know that if it returns an empty string the file is done.

And also so a readln/writeln loop preserves line endings.

Reply via email to