Nodes/RES4LYF/TextLoadFile
ComfyUI Node Runs on cloud

TextLoadFile

Load a .txt off disk into your workflow

By ClownsharkBatwing·Created 2 years ago·Updated 18 days ago· 1,222
TextLoadFile
    • text
    text_file

    A plain little utility that does one honest thing: reads a text file from disk and outputs its contents as a string. TextLoadFile gives you a dropdown of available .txt files, you pick one, and its text flows into whatever needs it - a prompt encoder, a settings box, or one of RES4LYF's own text-driven nodes.

    It's the kind of node you don't think about until you're tired of pasting the same long prompt into the box every time. Keep your go-to prompts, negative lists, or saved sigma schedules as files, and load them by name instead of retyping.

    How it works

    The node scans a text folder for files and presents them as a dropdown (text_file). When the workflow runs, it reads the selected file and emits its full contents as a STRING. No transformation, no parsing - whatever's in the file is what comes out.

    The inputs and outputs that matter

    • text_file (dropdown) - the file to load, chosen from what the node finds in its folder. Note: in a fresh install with no files present, this dropdown is empty - that's not a bug, there's just nothing to list yet. Drop a .txt in the folder and it'll appear.
    • text (STRING, output) - the file's contents, ready to wire into a text encoder or any node that takes a string.

    How to install it

    ComfyUI Manager: search RES4LYF, install, restart. Manually:

    cd ComfyUI/custom_nodes
    git clone https://github.com/ClownsharkBatwing/RES4LYF
    cd RES4LYF
    pip install -r requirements.txt
    

    Portable ComfyUI: use the embedded pip. Restart and hard-refresh with F5. No downloads.

    Common issues & troubleshooting

    The dropdown is empty. There are no files where the node is looking. Add a .txt file to the folder it scans, then reload the node (or restart and F5) so it re-reads the directory. An empty list means "no files found," not "broken."

    My new file doesn't show up. ComfyUI builds these dropdowns when nodes load. Drop the file in, then refresh the page (F5) or restart so the node rescans. If it still won't appear, double-check you put it in the folder the node actually reads and that it's a plain text file.

    Encoding weirdness. If special characters come through garbled, save the file as UTF-8. Plain ASCII always works.

    Pair it with Sigmas From Text. One neat use inside this pack: save a favorite hand-built sigma schedule as a .txt, load it here, and feed the string into Sigmas From Text to rebuild the schedule without retyping the numbers. For prompts, wire the output straight into your CLIP text encode.

    CategoryRES4LYF/text

    Inputs (1)

    NameTypeDefaultDescription
    text_fileCOMBO0 options:

    Outputs (1)

    NameTypeDescription
    textSTRING