BYTE.writeFile

Writes the containt of a BYTE 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 BYTE locator to the specified file.

The bytes are written as is, without any conversion.

If the file cannot be written, the error -8087 is raised.

Example

MAIN
  DEFINE b BYTE
  LOCATE b IN MEMORY
  SELECT col_byte INTO b FROM ...
  CALL b.writeFile("mydata")
END MAIN