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