Fix a bug with readLine() and no newline on the last line of a file.