You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
kleer001 edited this page Feb 6, 2025
·
1 revision
File In Node
A versatile node that reads and parses text files or input strings into lists. Can either read from a file or process input text, automatically parsing formatted string lists like "[item1, item2, item3]" into proper Python lists. If no input is provided, reads from the specified file.
Parameters
file_name (str)
Path to the target file. Defaults to "./input.txt"
file_text (str)
Contains the current file content.
refresh (button)
Forces reload of the file content.
Key Features
Smart File Handling
Monitors file changes using MD5 hashing
Automatically reloads when file content changes
Provides error reporting for file access issues
Supports force refresh via button
Input Processing
Uses provided input instead of file content when available
Parses text in format "[item1, item2, ...]" into list items
Handles quoted strings, escapes, and empty items
Falls back to single-item list for invalid formats