|
Write File Action |
Declaration |
<AMFILEWRITE FILE="text" DATA="text" APPEND="yes/no" BYTESVARIABLE="text"> |
See Also |
Copy File, Move File, Delete File, Delete Folder, Rename Folder |
Writes the data specified to a file. The data is either overwriting the file or is appened at the end of the file.
To write data to a text file.
Specifies the file(s) that the data should be written to.
Specifies whether the data should be appended to the end of the file
as a new line or should overwrite all the data in the file. The
available options are:
yes: The data will be
appended onto the end of the file as a new line
no: The data will be overwritten
Specifies the data to write to the file. As with every text parameter, if the data you wish to write is contained in a variable simply type the variable name surrounded by percentage signs to resolve it to it's contents at runtime (e.g. %varname%).
Specified the name of the variable to populate with the number of bytes that were written to the file. The variable must have been created using a Create Variable <AMCREATEVAR> previous step.
Standard Error Handling Options
This action also includes the standard "Error Causes" and
"On Error" failure handling options/tabs
More on Error Handling Options
Variables and Expressions
All text fields allow the use of expressions by surrounding the
expression in percentage signs (example: %MYVARIABLE%,
%Left('Text',2)%). To help construct these expressions, a popup
expression builder is available in all these fields by pressing F2.
More on variables...
More on expressions...
More on the expression builder...
<AMFILEWRITE FILE="C:\test.txt" WRITEDATA="This is the text I want to write to the end of the file" VARIABLENAME="varname">