WriteFile

ITP/Server will append a single line to a file. ITP/Server will create the file if it does not exist. ITP/Server terminates the line by a CR/LF pair.

Syntax
WriteFile
File(<text>)
Message(<text>)
Unicode(<True or False>)
ByteOrderMark(<True or False>);
Parameters

File: Required.
The file to which the line will be appended.

Message: Required.
The line that will be appended to the file.

Unicode: Optional.
Indicates whether or not the line will be written in Unicode or in the local code page.

If this parameter is not present or its value is False ITP/Server will write the line in the single-byte code page of the system. If this parameter is True ITP/Server will write the line as double-byte Unicode characters.

ByteOrderMark: Optional.
Indicates whether or not a byte order mark (BOM) should be written at the beginning of a new file. This parameter has no effect for non-Unicode encodings. It also has no effect if the target file already exists.

If this parameter is not present or its value is False, ITP/Server will not write a byte order marker. If this parameter is True, and the target file does not yet exist, ITP/Server will write a byte order mark (BOM) at the start of the file to indicate the Unicode encoding of the file.