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>dffgoto()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
dfFGoto()
Set the current position in a DFFREAD
------------------------------------------------------------------------------
Syntax:

     dfFGoto( <nPos> ) --> NIL

Parameters:

     <nPos>     Position

Returns:

     NIL

Description:

     Set the current position in a DFFREAD

Example:

     #include "dfStd.ch"
     
     LOCAL nHandle := FCREATE( "CONFIG.NEW" )
     
     dfFOpen( "C:\CONFIG.SYS" )
     WHILE !dfFEof()
        ? dfFread()
        ?? dfFPos()
        FWRITE( nHandle, dfFRead() +CRLF )
        dfFSkip()
     END
     
     dfFGoto( 0 )
     WHILE !dfFEof()
        ? dfFread()
        ?? dfFPos()
        FWRITE( nHandle, dfFRead() +CRLF )
        dfFSkip()
     END
     dfFClose()
     
     fClose(nHandle)

See also:

     dfFRead()

See Also: dfFRead()

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