The USFile EOF Method

Previous Next

See Also

The EOF method checks if an end-of-file is reached when reading a file. It can be used in conjunction with the ReadLine method to check if all lines have been read. The EOF method returns 0 when the end of the file has not yet been reached and 1 if it has been reached.

The syntax is:

INVOKE USFile.EOF

WITH

SELECT <Alias>

Where Alias is the alias of the file to check, previously assigned to a file using the USFile.Open method. The alias is case insensitive and may be preceded by 'USFile.'.

Example:

SELECT USFile.ReadLine('USFile.ToursFile')

WHERE USFile.EOF('USFile.ToursFile') = 0