ComfyUI > Nodes > CRT-Nodes > Save Text With Path (CRT)

ComfyUI Node: Save Text With Path (CRT)

Class Name

SaveTextWithPath

Category
CRT/Save
Author
CRT (Account age: 1707days)
Extension
CRT-Nodes
Latest Updated
2026-03-16
Github Stars
0.1K

How to Install CRT-Nodes

Install this extension via the ComfyUI Manager by searching for CRT-Nodes
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter CRT-Nodes in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

Save Text With Path (CRT) Description

Saves text data as a `.txt` file to a specified directory, enhancing text organization and retrieval.

Save Text With Path (CRT):

The SaveTextWithPath node is designed to facilitate the saving of text data into a structured file system, allowing you to specify both the directory and subdirectory where the text file will be stored. This node is particularly useful for organizing text outputs from various processes, ensuring that they are saved in a consistent and retrievable manner. By providing a straightforward method to save text as a .txt file, it enhances workflow efficiency, especially in environments where managing large volumes of text data is necessary. The node's primary function is to take a string of text and save it to a specified location on your file system, making it an essential tool for tasks that require persistent storage of textual information.

Save Text With Path (CRT) Input Parameters:

text

This parameter represents the actual content that you wish to save as a text file. It is a required input and must be provided as a string. The text you input here will be the content of the .txt file created by the node. There are no default values for this parameter, as it is mandatory to specify the text you want to save.

folder_path

The folder_path parameter specifies the base directory where the text file will be saved. It is a string input that allows you to define the root location on your file system for storing the file. The default value is an empty string, which means you need to provide a valid path to ensure the file is saved in the desired location. This parameter is crucial for organizing your files and ensuring they are saved in the correct directory.

subfolder_name

This parameter allows you to specify a subdirectory within the base folder defined by folder_path. It is also a string input, with a default value of an empty string. By using this parameter, you can further organize your text files into subcategories or projects, making it easier to manage and retrieve them later. If left empty, the text file will be saved directly in the base folder.

filename

The filename parameter determines the name of the text file to be created, excluding the file extension. It is a string input with a default value of "output". This parameter allows you to customize the file name to reflect its content or purpose, aiding in file identification and management. The node will automatically append the .txt extension to the file name you provide.

Save Text With Path (CRT) Output Parameters:

The SaveTextWithPath node does not produce any direct output parameters. Its primary function is to perform an action—saving a text file to a specified location—rather than generating output data for further processing within the node system.

Save Text With Path (CRT) Usage Tips:

  • Ensure that the folder_path and subfolder_name are correctly specified to avoid saving files in unintended locations.
  • Use descriptive names for the filename parameter to make it easier to identify the content of the text files later.
  • Double-check the text input to ensure that it contains the correct data you wish to save, as this is the content that will be written to the file.

Save Text With Path (CRT) Common Errors and Solutions:

"FileNotFoundError: [Errno 2] No such file or directory"

  • Explanation: This error occurs when the specified folder_path or subfolder_name does not exist on the file system.
  • Solution: Verify that the directory paths provided in folder_path and subfolder_name are correct and that they exist. Create the directories if they do not already exist.

"PermissionError: [Errno 13] Permission denied"

  • Explanation: This error indicates that the node does not have the necessary permissions to write to the specified directory.
  • Solution: Check the permissions of the directory specified in folder_path and ensure that the application has write access. Adjust the permissions if necessary or choose a different directory where write access is permitted.

Save Text With Path (CRT) Related Nodes

Go back to the extension to check out more related nodes.
CRT-Nodes
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.

Save Text With Path (CRT)