This node receives a file path and writes the contents of Text to the file in question, in UTF-8 plaintext format. The result of the operation is then returned by the Boolean Output SUCCESS?.
Depending on the writing Mode of your choice, the file may be either Appended to (new lines will be added to the end of the file without changing the original content), Overwritten (the file will be removed and replaced with the contents of Text) or if Mode is set to New Only, the operation will fail if the file already exists and its contents will remain unchanged.
Additionally, if the Mode is set to Append you may choose whether or not to add a New Line terminator at the end of the file, so that any subsequent writes start in a new line rather than being written contiguously.
To specify a dynamic Text, convert the Text widget of this node to an input.
HOVER OVER THE INPUTS AND OUTPUTS FOR MORE INFO.
By VykosXยทCreated 2 years agoยทUpdated 2 years agoยท 147
๐พ Save Text File
SUCCESS?
โfile_pathout.txtโบ
โmodeโพโบ
โterminatortrueโบ
โtextโโบ
Category๐บ VykosX-ControlFlowUtils
Inputs (4)
Name
Type
Default
Description
file_path
STRING
out.txt
Absolute or relative path of the file to write to
mode
COMBO
Mode that the file should be written as
terminator
BOOLEAN
true
Whether to include a new line after appending to the file
text
STRING
Text to write to the file. Right Click and convert to input to specify dynamicaly
Outputs (1)
Name
Type
Description
SUCCESS?
BOOLEAN
Returns True if the file was successfully written to, False otherwise