Closed bvandersloot closed 6 years ago
I'm not sure if I understand the intuition here behind why Readln was added. Is there any reason to not just use ReadString('\n')
or ReadBytes('\n')
?
I had not seen ReadString
! Not sure how I missed it!
Does this miss the last line? Seems like if err == eof could be weird. Might he worth testing once.
Tested- it catches the last line. The last line is returned with err == nil
, then the loop breaks with an EOF error in the normal case.
Fix #11