Write Text File
Writes text to a file at path. Set append when new content should be added to existing file contents instead of replacing them. Set flushNow to force pending file changes to be written immediately.
Inputs
| Input | Required | Value Kind | Types | Enum Values |
|---|---|---|---|---|
path | yes | expression | file-path-string | — |
text | yes | expression | string | — |
append | no | expression | — | — |
flushNow | no | expression | — | — |
Notes
No additional notes are available yet.
Examples
Write Text File At Fixed Path
Writes a short text file with `append=false` and `flushNow=true`, then reads it back to verify the exact content.
Topics: files, text output
Source: patterns/ex-files-write-text-file-fixed-path.json
Flush Buffered File Write With Sleep
Writes a text file into the runtime buffer, then uses sleep as a zero-delay sync point to flush buffered file writes before continuing.
Topics: files, synchronization
Source: patterns/ex-files-flush-buffered-write-with-sleep.json
Write Camera Metadata JSON For Python
Serializes the selected item's Camera metadata, writes compact JSON to a flushed per-run randomized file, lets isolated Python read it, and removes the file after normal process completion.
Topics: json, metadata, files, runtime python, external process
Source: patterns/ex-json-write-camera-metadata-for-python.json