Read text
Read a text file.
Command in the File toolkit · id ooa.file/read_text · 3 inputs (1 required), 1 output
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Path | File | Yes | File path. | |
| Encoding | String | No | utf-8 | Text encoding, e.g. utf-8, utf-16le, windows-1252; auto reads a byte order mark, else takes UTF-8 when it fits, else windows-1252. |
| Trim | String | No | none | Remove spaces and line breaks at the start, the end or both ends of the text. |
Outputs
| Output | Type | What it is |
|---|---|---|
| text | String | File content. |