read-first-line

Read first line of the file. Works fine with LF and CRLF line endings.