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
Export Sequence Markers To YouTube Chapter Text
Prompts for the chapter title source and output mode, then exports active-sequence markers as YouTube chapter lines to the clipboard or a `.txt` file while skipping empty resolved text.
Topics: markers, YouTube chapters, text export, clipboard workflows, save dialogs, marker comments
Source: recipes/ex-markers-export-active-sequence-to-youtube-chapter-text.json