Xwrite
General Operation Statement
The Xwrite statement notates information to a general write file in any text format the user chooses. Xwrite is for writing user-formatted files, while Write and WriteLine are for writing special formatted text files. Xwrite always appends to a file unless the file is Reset.
Syntax
Xwrite <file ID>, <string or numeric expression>
Syntax Example
Xwrite Rpt, "Box Shipped at:" $ Format(Clock(min),3,2)
Parameters
<file ID>
The file name as previously defined in the External Files Editor.
<string or numeric expression>
The string expression to write to the file.
Remarks
Note that any time a Write or WriteLine writes to a file, the file ia automatically a text file. No end of file marker is appended to files written only with Xwrite. In subsequent replications, additional items are appended to the file's end unless the file is Reset. ProModel does not format the string expression, although you can use the Format statement to manually format data. To add an end of file marker to a user-formatted file, use Xwrite Char(26).