Perhaps it's an empty line (containing only CRLF) Are you positive the last line should contain data?