IsFileEnd()
Syntax
IsFileEnd(<cFile>) --> lEnd
Arguments
<cFile> is the name of the file to read from disk. A path and drive letter should be specified if applicable.
Returns
Returns TRUE if there is no more data to read from the file, otherwise FALSE is returned.
Description
This function is used to determine whether the end of a data file has been reached when reading from it. The file must already have been opened using OpenFile(). After you have completed reading the file, it must be closed using CloseFile().
Example
cFile := "C:\CAPITAL\Mydata.dat"
cData := ""
If OpenFile(cFile)
* Read 1 line of data until end reached
* :LoopRead
cData := ReadFileLine(cFile)
If ( .Not. IsFileEnd(cFile) ) Goto LoopRead
CloseFile(cFile)
____________________________
Related Topics: