The USFile EOF Method
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:
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.'.
WHERE USFile.EOF('USFile.ToursFile') = 0