Visit ComfyUI Online for ready-to-use ComfyUI environment
Save multiline text data to file, supports CSV and plain text formats, prevents file naming conflicts.
The CR Save Text To File node is designed to help you save multiline text data into a file on your system. This node is particularly useful when you need to store generated text, logs, or any other multiline text output for later use or analysis. It supports saving text in both CSV and plain text formats, ensuring flexibility depending on your needs. The node automatically handles file naming conflicts by appending an index to the filename, preventing accidental overwrites. This feature is especially beneficial for AI artists who generate multiple versions of text data and need a reliable way to save and organize their outputs.
This parameter takes the multiline text that you want to save to a file. It can be any string containing multiple lines of text, separated by newline characters. The content of this text will be written to the specified file.
This parameter specifies the directory path where the file will be saved. It should be a valid path on your system. If this parameter is left empty, the node will not save the file and will issue a warning.
This parameter defines the name of the file to be created. It should be a valid filename without the extension. If this parameter is left empty, the node will not save the file and will issue a warning.
This parameter specifies the file format in which the text will be saved. It supports "csv" for comma-separated values and "txt" for plain text files. The choice of extension affects how the text is written to the file.
This output provides a URL to the help documentation for the node. It is useful for users who need more detailed instructions or troubleshooting tips.
output_file_path
and file_name
parameters are not empty to avoid warnings and ensure the file is saved correctly.file_extension
parameter to choose the appropriate format for your needs. For structured data, "csv" is recommended, while "txt" is suitable for plain text.output_file_path
or file_name
parameters are empty.output_file_path
and file_name
are provided with valid values before executing the node.output_file_path
is a valid directory on your system and that the file_name
does not contain any invalid characters.file_extension
parameter is set to either "csv" or "txt".© Copyright 2024 RunComfy. All Rights Reserved.