BYTE.readFile
Reads a file into a BYTE
locator.
Syntax
readFile(
path STRING )
- path is the path the file to be loaded.
Usage
This method reads content from the specified file into the BYTE
locator.
The bytes are loaded as is, without any conversion.
If the file is not found or if it cannot be read, the error -8087 is raised.
Example
MAIN
DEFINE b BYTE
LOCATE b IN MEMORY
CALL b.readFile("mydata")
END MAIN