ComfyUI Node
dynamic_load_text_file
Loads the content of a text file. The content is returned as a string.
dynamic_load_text_file
- content
- exception
◄file_path—►
◄encodingutf_8►
Categorydynamic/utils
Inputs (2)
| Name | Type | Default | Description |
|---|---|---|---|
| file_path | STRING | The full path to the text file to load. (e.g. E:/dir/script.py) | |
| encoding | COMBO | utf_8 | The encoding to use for reading the file. |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| content | STRING | The content of the file. |
| exception | * | Exception information or None. |