Fixed file read always newline at end of file bug.