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.