Purpose
Writes data to an open file.
Syntax
Write # file_num [ , expr ... ]
file_num is the number of an open file.
expr is an expression to write to the file.
Description
The Write # statement writes data to an open file. The file must have been opened in a sequential mode which allows modification of the file (Output or Append).
The file_num parameter corresponds to the number specified in the As clause of the Open File statement.
If the statement includes a comma-separated list of expressions, MapInfo Pro automatically inserts commas into the file to separate the items. If the statement does not include any expressions, MapInfo Pro writes a blank line to the file.
The Write # statement automatically encloses string expressions in quotation marks within the file. To write text to a file without quotation marks, use the Print # statement.
Use the Input # statement to read files that were created using Write #.
See Also:
Input # statement, Open File statement, Print # statement