Script WRITE Statement

WRITE "string" [NOCR]

The WRITE statement writes a line of text into the currently-open file.

WRITE places string in the open file, followed by a carriage return. If the NOCR keyword is present, the carriage return is suppressed.

Lines are always appended to the end of the file. To erase the contents of the file before writing to it, use the DELETE statement.

If an error occurs, the _$filerror system variable is non-zero.

Copyright © 2017 American Chemical Society. All Rights Reserved.