bool isEndOfFile() const/file

Returns true if the end of file is reached.