Text File - Write

Writes text to a text file.

Action ID:
Action Category:
Action List Syntax:

32
Text File 
TextFile.Write (<<FILENAME>>, <<DATA>>)

Settings

File name:

The name of the text file to write to.

Data to write:

The text to write out to the text file.

TIP

 

 

 

 You can write the contents of a variable to a text file by using the variable name in the Data to write field.

If file already exists

What to do if the file already exists:

Overwrite file with new data

-

The old file will be erased and the data will be written to create a new file.

Prepend data to start of file

-

The text in Data to write will be added to the beginning of the text file.

Append data to end of file

-

The text in Data to write will be added to the end of the text file.

Error Codes

Value
(%LastErrorNum%)

Simple Message
(%LastErrorMsg%)

Verbose Message
(%LastErrorDetails%)

0 (OK)

 

 

1

MSG_ERR_WRITE_TEXT_FILE

MSG_ERR_WRITE_TEXT_FILE
MSG_ERR_OPENING_FILE
<<FILENAME>>

Examples

None