TEXT.readFile
Reads a file into a TEXT
locator.
Syntax
readFile(
path STRING )
- path is the path the file to be loaded.
Usage
This method reads content from the specified file into a TEXT
locator.
If the file is not found or if it cannot be read, the error -8087 is raised.
Important: The character set used in the file must match the current
application locale.
Example
MAIN
DEFINE t TEXT
LOCATE t IN MEMORY
CALL t.readFile("mydata")
END MAIN