write

write

Creates a file if it doesn't exist and appends a string to the end of it

Attributes:

string: the string to write to the file
file: the file path and name.  Default path is local  

Example:

<write string="Write to the local profile directory{10}{13}" file="TestFile.txt" />
<write string="Write to the local sub-directory{10}{13}" file="/Data/TestFile.txt" />
<write string="Write to an external storage device{10}{13}" file="e:/ComScriptData/TestFile.txt" />
 
Note: Curly braces are used to denote non-printed ASCII characters such as line feed {10} and carriage return {13} which together create a new line.