Difference between revisions of "FEOF()"
From Recital Documentation Wiki
Yvonnemilne (Talk | contribs) |
Helengeorge (Talk | contribs) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | |||
− | |||
− | |||
− | |||
==Purpose== | ==Purpose== | ||
Function to check if the file pointer is at the end of an ASCII file | Function to check if the file pointer is at the end of an ASCII file | ||
Line 32: | Line 28: | ||
==Products== | ==Products== | ||
− | Recital | + | Recital Server, Recital |
[[Category:Documentation]] | [[Category:Documentation]] | ||
[[Category:Functions]] | [[Category:Functions]] | ||
+ | [[Category:ASCII File Access]] | ||
+ | [[Category:ASCII File Access Functions]] |
Latest revision as of 17:23, 27 November 2009
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 Server, Recital