Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- ClipOn 3.0 Reference - c_fileeof() http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 C_FILEEOF()

 DESCRIPTION

 C_FILEEOF() determines whether the specified file handle is
 positioned at the end-of-file.

 SYNTAX

 C_FILEEOF(handle)

 PARAMETERS

 handle (N) is the file handle number assigned when the file was opened.

 RETURNS

 C_FILEEOF() returns true (.T.) if the file handle is positioned at
 the end-of-file or false (.F.) if it is not.

 EXAMPLES

 f1 = fopen("test.txt")     && open file
 ...
 do while .t.
   if c_fileeof(f1)         && check for EOF
     exit
   endif
   ? c_fileread(f1)         && read and display file
 enddo


See Also: C_FILETOP() C_FILEEND() C_FILEPOS() C_FILEREAD()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson