.. highlightlang:: us .. _feof: feof ==== .. index:: feof .. us.tag feof ENGLISH ffiles :ref:`feof` tests for end-of-file. .. function:: bool = feof(fh) .. us.return **Return Value** *bool* is TRUE (1) after the first read operation that attempts to read past the end of the file. The function returns FALSE (0) if the current position is not end of file. .. us.params **Parameters** .. uparam:: fh *fh* is a file handle. .. seealso:: :ref:`overview-binary-and-text-files`, :ref:`fread`, :ref:`fseek`, :ref:`fopen` :sub:`id-1900234`