Read File
Read a file’s text from the sandbox, fresh each time a node reads it. A missing file reads as empty.
Pulled, fresh. It runs every time a node reads its output, so each read gets a new value.
Inputs
Section titled “Inputs”| Port | Type | Notes |
|---|---|---|
path |
text | Optional |
Outputs
Section titled “Outputs”| Port | Type | Notes |
|---|---|---|
text |
text |
Right-click a knob and pick Convert to input to drive it from a wire.
| Knob | Kind | Default | Notes |
|---|---|---|---|
path |
text | empty |
Example
Section titled “Example”Reads a text file from user/data/files, fresh every time: notes.md reads user/data/files/notes.md. A missing file reads as empty text, and a path that leaves the folder comes back as an error message instead of the file.
More in Files
Section titled “More in Files”- Append File: Append text to a file in the sandbox on a trigger, creating it if it is not there.
- Delete File: Delete a file in the sandbox on a trigger.
- List Dir: List the names in a folder of the sandbox, fresh each time a node reads it.
- Write File: Write text to a file in the sandbox on a trigger, creating its folders.