[Issue 13856] std.stdio.readln stomps arrays
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Tue Mar 24 07:28:31 PDT 2015
https://issues.dlang.org/show_bug.cgi?id=13856
Steven Schveighoffer <schveiguy at yahoo.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |schveiguy at yahoo.com
--- Comment #7 from Steven Schveighoffer <schveiguy at yahoo.com> ---
(In reply to Martin Nowak from comment #5)
> As an intermediate replacement it is possible to use byLine.
Not really. readln does not do the same thing as byLine.
I don't know how you would use byline instead of readln in the OP code. byLine
is not really meant to be a "read a line here or there" type of operation, it's
meant to exhaust the stream a line at a time.
--
More information about the Digitalmars-d-bugs
mailing list