Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Nanforum Toolkit v2.1 Reference Guide - <b>ft_fgotop()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 FT_FGOTOP()
 Go to the first record in a text file
------------------------------------------------------------------------------

 Syntax

      FT_FGOTOP() -> NIL

 Arguments

     None

 Returns

     NIL

 Description

     This function moves the record pointer to the first record
     in the currently selected text file workarea.

     A text file "record" is a line of text terminated by a CRLF pair.

 Examples

     FT_FUSE( "text.c" )      // open text file
     DO WHILE !FT_FEOF()
        ? FT_FREADLN()        // read thru file
        FT_FSKIP()
     ENDDO
     FT_FGOTOP()              // go back to top
     ? FT_FRECNO()            // 1

 Source: FTTEXT.C

 Author: Brice de Ganahl and Steve Larsen

See Also: FT_FSELECT() FT_FUSE() FT_FRECNO() FT_FGOBOT()

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