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>dffread()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
dfFRead()
Returns the contents of the current record
------------------------------------------------------------------------------
Syntax:

     dfFRead() --> cRec

Parameters:

     NONE

Returns:

     <cRec> Current record.

Description:

     Returns the contents of the current record of a file opened by
     dfFOpen() an/or selected by dfFSelect(). No skip on the file will be
     executed.

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:

     dfFEof(), dfFLocate(), dfFOpen(), dfFSelect(), dfFSkip()

See Also: dfFEof() dfFLocate() dfFOpen() dfFSelect() dfFSkip()

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