EasyUse/Logicgenerated
Save Text(saveText)
Save Text is a logic utility node that writes a string to a file while optionally passing both the text and an image through the graph.
save Text
image
text
image
text
STRING
output_file_path
STRING
file_name
STRING
file_extension
COMBO
overwrite
Easy Use
Save Text is a logic utility node that writes a string to a file while optionally passing both the text and an image through the graph. It is most useful when you want to persist generated text such as prompts, captions, or metadata to disk without breaking an existing node chain.
Inputs
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
text | STRING | Yes | "" | The text content to save to the file. |
output_file_path | STRING | Yes | "" | The directory or folder path where the file should be written. |
file_name | STRING | Yes | "" | The name of the file to write, without the extension. |
file_extension | COMBO | Yes | "txt" | The file extension to use. Options: txt, csv. |
overwrite | BOOLEAN | Yes | true | When enabled, an existing file with the same name will be overwritten. When disabled, the file will not be replaced. |
image | IMAGE | No | — | An optional image to pass through the node. |
Outputs
| Type | Description |
|---|---|
| STRING | The original text input, passed through unchanged. |
| IMAGE | The original image input, passed through unchanged. If no image is connected, this output is None. |
Usage Notes
- The
file_extensiondropdown controls the file type written by the node. Choosetxtfor plain text orcsvfor comma-separated output. output_file_pathshould be the folder in which the file is created; the final filename is built fromfile_nameplus the selectedfile_extension.- The STRING output lets you continue using the saved text elsewhere in the workflow, while the IMAGE output keeps the node compatible with image-processing chains.
- This node belongs to the
EasyUse/Logiccategory.
Comments
Sign in with GitHub to join the discussion.