ComfyUI Node
File Read Line
テキストファイルを1行ずつ読み込みます。実行のたびに次の行へ進みます
File Read Line
- line_text
- line_index
- line_count
- is_last
◄file_path►
◄modesequential►
◄resetfalse►
◄encodingauto►
◄skip_empty_linesfalse►
CategoryString Function
Inputs (5)
| Name | Type | Default | Description |
|---|---|---|---|
| file_path | STRING | — | |
| modeopt | COMBO | sequential | 2 options: sequential, shuffle |
| resetopt | BOOLEAN | false | True を受けた実行でカウンタをリセットし先頭から再開する |
| encodingopt | COMBO | auto | 4 options: auto, utf-8, utf-8-sig, cp932 |
| skip_empty_linesopt | BOOLEAN | false | True にすると空行をスキップしてカウント |
Outputs (4)
| Name | Type | Description |
|---|---|---|
| line_text | STRING | — |
| line_index | INT | — |
| line_count | INT | — |
| is_last | BOOLEAN | — |