Can you read the next line while iterating over byLine?
Ivan Kazmenko via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sat Feb 4 00:54:27 PST 2017
On Thursday, 2 February 2017 at 19:34:37 UTC, John Doe wrote:
> Thanks readln is perfect. Since I am calling readln in
> different places and I always need to remove the newline
> character I have line=line[0..$-1] all over my code. Is there
> are better way?
"readln.strip" gives the line without the trailing newline
character.
More information about the Digitalmars-d-learn
mailing list