TEXT.readFile

Reads a file into a TEXT locator.

Syntax

readFile( filename STRING )
  1. filename is the path the file to be loaded.

Usage

This method reads a content from the specified file into the 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