Action File System
Read / Write File
Reads, writes, or appends text content to a file. Can also read a file as a list of lines or write a list of strings as lines.
Node IDReadWriteFileAction
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
Operation operation | enum | Yes | Read | The action to perform on the specified file. |
File Path filePath | file_picker | Yes | — | The absolute path to the file. Can be set by a data connection. |
Content content | textarea | No | — | The text content to write or append. For 'Write' and 'Append' operations, accepts a string. For 'WriteLines' operation, accepts a list of strings (one per line). Can be set by a data connection. |
Inputs
| Input | Type | Required | Description |
|---|---|---|---|
Execute input0 | object | Yes | An incoming execution signal. Any data from the previous node will be passed through on 'Write' or 'Append'. |
Outputs
| Output | Type | Identifier | Description |
|---|---|---|---|
File Content output0 | object | file_content | For 'Read' operations, emits the text content. For 'ReadLines' operations, emits an array of strings (one per line). |
Passthrough Data output1 | object | passthrough_data | For 'Write' and 'Append' operations, this port passes through any data received on the input. |