Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- dBsee 4.6 - The Library - <b>dffeof()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
dfFEof()
Verifies end of file
------------------------------------------------------------------------------
Syntax:

     dfFEof()  --> lEof

Parameters:

     NONE

Returns:

     <lEof> If the file has reached its end, .T. is returned.

Description:

     Verifies if the current file is in EOF.

Example:

     . Example 1
     
     #include "dfStd.ch"
     
     LOCAL nHandle := FCREATE( "CONFIG.NEW" )
     
     dfFOpen( "C:\CONFIG.SYS" )
     WHILE !dfFEof()
        ? dfFread()
        FWRITE( nHandle, dfFRead() +CRLF )
        dfFSkip()
     END
     dfFClose()
     
     fClose(nHandle)
     
     . Example 2
     
     dfFOpen( "Menu.log" )  // Open the File
     WHILE !dfFEof()        // WHILE NOT EOF
        ? dfFRead()         // print the record
        dfFSkip()           // Skip
     END
     dfFClose()             // Close the file

See also:

     dfFOpen(), dfFRead(), dfFSelect(), dfFSkip(), dfFTop()

See Also: dfFOpen() dfFRead() dfFSelect() dfFSkip() dfFTop()

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