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>dffskip()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
dfFSkip()
Performs a Skip in a text file
------------------------------------------------------------------------------
Syntax:

     dfFSkip() --> NIL

Parameters:

     NONE

Returns:

     NIL

Description:

     Skip to the next record of a text file, moving the pointer to a file
     opened by dfFOpen().

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(), dfFTop()

See Also: dfFEof() dfFTop()

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