readln() returns new line charater
Jeroen Bollen
jbinero at gmail.com
Sat Dec 28 08:50:20 PST 2013
On Saturday, 28 December 2013 at 16:49:15 UTC, 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?
I just want to add to this, that it makes it really annoying to
work with the command line, as you kinda have to strip off the
last character and thus cannot make the string immutable.
More information about the Digitalmars-d
mailing list