- Documentation
- Activities
- Files & Folders
- Append Text File
Adds text to the end of an existing .txt file.
Inputs
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
File filePath | file | Required | — | — |
Content to Append content | text | Required | — | — |
Add Newline Before Content addNewline | boolean | Optional | false | — |
Create If Missing createIfMissing | boolean | Optional | false | — |
Encoding encoding | enum | Optional | utf-8 | —utf-8utf-16asciilatin1 |
Output Variable outputVariable | variable | Optional | AppendResult | — |
Output
$outputVariableObjectObject describing the append result. Reference {AppendResult.filePath}, {AppendResult.bytesAppended}, {AppendResult.totalSizeBytes}, {AppendResult.created}, {AppendResult.success}, or {AppendResult} alone (resolves to the file path).
successBooleanfilePathStringbytesAppendedNumbertotalSizeBytesNumbercreatedBooleanpathString
Compatibility
WindowsLinuxAttendedUnattended
Related activities
Copy File
Copies a file to a specified destination while keeping the original file unchanged.
Create File
Creates a new file at the specified location.
Delete File
Permanently deletes a file.
File Exists
Checks whether a file exists at the specified path.
Get File Info
Returns metadata about a file: name, size, dates, and read-only flag.
Move File
Moves a file to a new location and removes it from the original location.