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

NameTypeRequiredDefaultDescription
textSTRINGYes""The text content to save to the file.
output_file_pathSTRINGYes""The directory or folder path where the file should be written.
file_nameSTRINGYes""The name of the file to write, without the extension.
file_extensionCOMBOYes"txt"The file extension to use. Options: txt, csv.
overwriteBOOLEANYestrueWhen enabled, an existing file with the same name will be overwritten. When disabled, the file will not be replaced.
imageIMAGENoAn optional image to pass through the node.

Outputs

TypeDescription
STRINGThe original text input, passed through unchanged.
IMAGEThe original image input, passed through unchanged. If no image is connected, this output is None.

Usage Notes

  • The file_extension dropdown controls the file type written by the node. Choose txt for plain text or csv for comma-separated output.
  • output_file_path should be the folder in which the file is created; the final filename is built from file_name plus the selected file_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/Logic category.

Comments

Sign in with GitHub to join the discussion.

Loading comments…