FEOF()

From Recital Documentation Wiki
Revision as of 15:34, 23 March 2009 by Yvonnemilne (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Class

ASCII File Access


Purpose

Function to check if the file pointer is at the end of an ASCII file


Syntax

FEOF(<expN>)


See Also

FCLOSE(), FCREATE(), FERROR(), FFLUSH(), FGETS(), FOPEN(), FPUTS(), FREAD(), FSEEK(), FWRITE()


Description

The FEOF() returns a logical true (.T.) if the file pointer is at the end of the specified ASCII file. The ASCII file is specified by its file handle <expN>. The file handle should be assigned to a memory variable when the file is opened with the FCREATE() or FOPEN() functions.


Example

use accounts
fp=fopen("existing.file")
if fp > 0
   do while not feof(fp)
      ? fgets(fp)
   enddo
endif


Products

Recital Database Server, Recital Mirage Server, Recital Terminal Developer