Appending Data to an Output File
If the file that is named in a Direct_Output statement already exists, then the contents of the existing file are deleted and replaced with whatever data is written to it. To append data to the end of an existing file, you should use the Append_Output command to open the file.
Syntax
The syntax of the Append_Output command is:
Append_Output [channel {channel-num.}] {file-name}
Parameters
{channel-num.}: The assigned channel for the file that is being opened.{file-name}: The name and path of the file that is being opened.{file-name}can be a string token, string variable, or a string expression.
Examples
Here are examples of opening files using Append_Output:
Append_Output sErrorLog
Append_Output Channel 3 "c:\temp\activitylog.txt"