Write text
Write text to a file, overwriting or appending.
Command in the File toolkit · id ooa.file/write_text · 5 inputs (2 required), no outputs
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Path | File | Yes | File path. | |
| Text | String | Yes | Text to write. | |
| Append | Boolean | No | false | Append instead of overwrite. |
| Encoding | String | No | utf-8 | Text encoding, e.g. utf-8, utf-16le, windows-1252; ansi uses the runner's default. |
| Fail if exists | Boolean | No | false | Stop instead of writing when the file already exists. |