AppendTextFile Action


Mods Studio 2 version: 2019.07 or newer

Written on: November 14th, 2019


AppendTextFile Action adds text to the end of a text file. It will create the file if it does not exist.

Parameters

Parameter name Parameter type Supports variables Parameter description
FileName string Yes This is the path to the file to which this action will append text. It is relative to the TempModBuildDirectory.
TextLines List of strings Yes List of strings that get appended to the file. A line break is added between each string in the list.
TextContent string Yes Text that gets appended to the file.


Note: TextLines get apended to the file if there is no TextContent defined.