Skip to content
MicroBlaster edited this page Dec 11, 2020 · 3 revisions

Purpose: Appends a line of text to a text file.

Syntax: write {file} {value}

{file}: The name of a text file to append a line to.

{value}: The value to append to the file.

Notes: This command can be used to store a line of text at the end of a file. If the file does not exist, it is created.

Example:

# Create a var to hold file name. The system var GAMEDATA points to 
# the TWXP\DATA\MyGame folder which is created for each game.
$file := GAMEDATA & "MyFile.txt"

Write data to the file:
write $file "Hello World"

Clone this wiki locally