๐Ÿ“„ Read Text File

ReadTextFile

This node receives a file path and reads the contents of the file into a string buffer in the UTF-8 format and returns the data read. If a given Line number is specified, only that line will be returned. If Line is 0, the entire file will be read as plaintext and returned. If On_EOF is set to Ignore, Line numbers larger than exist within the file will be silently ignored and the node will return an empty string. Otherwise an error will be raised to alert the user. HOVER OVER THE INPUTS AND OUTPUTS FOR MORE INFO.

Pack: ControlFlowUtils

custom_nodes.ControlFlowUtils

Inputs (3)

NameTypeRequired
fileSTRINGrequired
lineINToptional
on_eofBOOLEANoptional

Outputs (1)

NameType
STRINGSTRING