ComfyUI Node
π Load Text Files (nhk)
Load text files with auto-incrementing index and folder scanning
π Load Text Files (nhk)
- text_content
- loaded_filepath
- available_count
- current_filename
- repeat_status
βfolder_pathβΊ
βbase_filenamesaved_textβΊ
βfile_extensiontxtβΊ
βcounter_format_{counter:03d}βΊ
βauto_incrementtrueβΊ
βset_to0βΊ
βrepeat_count1βΊ
βwrap_aroundtrueβΊ
Categorynhk/text
Inputs (8)
| Name | Type | Default | Description |
|---|---|---|---|
| folder_path | STRING | Target directory to scan for text files | |
| base_filename | STRING | saved_text | Base name pattern to match against files |
| file_extension | COMBO | txt | 2 options: txt, md |
| counter_format | STRING | _{counter:03d} | Format string for numeric counter pattern |
| auto_increment | BOOLEAN | true | Automatically advance to next file on each execution |
| set_toopt | INT | 00β9999 | Set to specific index (0 = continue from last, >0 = jump to that index) |
| repeat_countopt | INT | 11β100 | Load same file this many times before advancing to next |
| wrap_aroundopt | BOOLEAN | true | Return to first file after reaching the last one |
Outputs (5)
| Name | Type | Description |
|---|---|---|
| text_content | STRING | β |
| loaded_filepath | STRING | β |
| available_count | INT | β |
| current_filename | STRING | β |
| repeat_status | STRING | β |