The USFile ReadLine Method

Previous Next

See Also

The ReadLine method reads a line of text from a file previously opened by the USFile.Open method in READ mode. The ReadLine method reads text until it reaches a newline character and returns the text read. When there are no more lines to read, or when an empty line is read, NULL is returned.

The syntax is:

INVOKE USFile.ReadLine

WITH

SELECT <Alias>

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

Example:

INVOKE USFile.ReadLine

WITH

SELECT 'USFile.ToursFile'