The USFile ReadTextFile Method

Previous Next

See Also

The ReadTextFile method reads a complete text file. The method returns the characters read.

The syntax is:

INVOKE USFile.ReadTextFile

WITH

SELECT <FileName>

Where FileName is the name of the file to read. The name is allowed to contain environment variables.

Example:

UPDATE ToursBackup

SET tours = USFile.ReadTextFile('%TEMP%\MyToursFile.txt')

WHERE id = 1