When getting next line, also parse it so eof() call is correct.