1. Home
  2. %OPEN directive

%OPEN directive

Open a binary file for use with %WRITE.

No options


NAME = text Name of file to be opened for binary output using %WRITE.


%OPEN has a single parameter, NAME, which specifies the name of a file to be opened in binary mode for output by the %WRITE command. If the file already exists, it is deleted, and then reopened as a new file. The file can be used to communicate data to other programs that read in data in binary form. For example, it is used by FSPREADSHEET to write spreadsheet files.

The file should be closed by the %CLOSE directive when output has been completed. The %FPOSITION command can be used to query the current position in the file.

Options: none.
Parameter: NAME.

See also

Commands for: Input and output.

Updated on February 9, 2022

Was this article helpful?