TEXT.writeFile

Writes the containt of a TEXT to a file.

Syntax

writeFile( filename STRING )
  1. filename is the file to be written to.

Usage

This method writes the containt of the current TEXT locator to the specified file.

If the file cannot be written, 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
  SELECT col_text INTO t FROM ...
  CALL t.writeFile("mydata")
END MAIN