USFile.ReadLine

Previous Next

Reads a line of text from a file previously opened by the USFile.Open method in READ mode. This method reads text until it reaches a newline character.

Reads a complete file in text mode. Returns a sequence of human-readable characters.

Returns the text read. If there are no more lines to read, or if an empty line is read, NULL is returned.

Syntax

INVOKE USFile.ReadLine WITH

SELECT   USFile.alias

 

The required alias must be the alias that was associated with the file to be read when the file was opened by calling the USFile.Open method.

Alias must be preceded by the prefix "USFile." (ending in a full stop), which is a hard-coded string. Both prefix and alias are case-insensitive.

 

Example

INVOKE USFile.ReadLine WITH

SELECT    'USFile.ToursFile'

 

 

See Also

USFile.ReadTextFile

USFile.ReadBinaryFile

USFile Internal Component