ComfyUI Node

File Read Line

テキストファイルを1行ずつ読み込みます。実行のたびに次の行へ進みます

By TakkunRed·Created 4 months ago·Updated 3 months ago· 0
File Read Line
    • line_text
    • line_index
    • line_count
    • is_last
    file_path
    modesequential
    resetfalse
    encodingauto
    skip_empty_linesfalse
    CategoryString Function

    Inputs (5)

    NameTypeDefaultDescription
    file_pathSTRING
    modeoptCOMBOsequential2 options: sequential, shuffle
    resetoptBOOLEANfalseTrue を受けた実行でカウンタをリセットし先頭から再開する
    encodingoptCOMBOauto4 options: auto, utf-8, utf-8-sig, cp932
    skip_empty_linesoptBOOLEANfalseTrue にすると空行をスキップしてカウント

    Outputs (4)

    NameTypeDescription
    line_textSTRING
    line_indexINT
    line_countINT
    is_lastBOOLEAN