check totalLineCount < file length with EOF