readLine() is working fine: I get the data from the file. So I'd think that the line terminators are fine. Does atEnd() check for EOF? I can't understand why the end of file wouldn't be detected...