Visit ComfyUI Online for ready-to-use ComfyUI environment
Concatenate contents of multiple files into single string output, enabling merging text data from different sources.
The file_combine
node is designed to concatenate the contents of multiple files into a single string output. This node is particularly useful when you need to merge text data from different sources into one cohesive output. By enabling this node, you can specify up to ten different file inputs, and the node will combine their contents line by line. This functionality is beneficial for tasks that require aggregating data from multiple files, such as combining configuration files, merging logs, or consolidating text data for further processing. The node ensures that the combined output is neatly formatted with each file's content separated by a newline, making it easy to read and process.
This parameter determines whether the node is active or not. When set to True
, the node will execute the file combination process. If set to False
, the node will not perform any action and will return None
. The default value is True
.
This is an optional input parameter where you can specify the content of the first file to be combined. If not provided, it will be ignored in the combination process. This parameter expects a string input.
This is an optional input parameter where you can specify the content of the second file to be combined. If not provided, it will be ignored in the combination process. This parameter expects a string input.
This is an optional input parameter where you can specify the content of the third file to be combined. If not provided, it will be ignored in the combination process. This parameter expects a string input.
This is an optional input parameter where you can specify the content of the fourth file to be combined. If not provided, it will be ignored in the combination process. This parameter expects a string input.
This is an optional input parameter where you can specify the content of the fifth file to be combined. If not provided, it will be ignored in the combination process. This parameter expects a string input.
This is an optional input parameter where you can specify the content of the sixth file to be combined. If not provided, it will be ignored in the combination process. This parameter expects a string input.
This is an optional input parameter where you can specify the content of the seventh file to be combined. If not provided, it will be ignored in the combination process. This parameter expects a string input.
This is an optional input parameter where you can specify the content of the eighth file to be combined. If not provided, it will be ignored in the combination process. This parameter expects a string input.
This is an optional input parameter where you can specify the content of the ninth file to be combined. If not provided, it will be ignored in the combination process. This parameter expects a string input.
This is an optional input parameter where you can specify the content of the tenth file to be combined. If not provided, it will be ignored in the combination process. This parameter expects a string input.
This output parameter returns a single string that contains the combined contents of all the specified files. Each file's content is separated by a newline character. If no files are provided or if the node is disabled, it returns None
.
is_enable
parameter is set to True
to activate the node.None
.is_enable
parameter is set to False
or when no file inputs are provided.is_enable
parameter is set to True
and at least one file input is provided.None
None
.is_enable
parameter is True
and provide valid file contents for the input parameters.© Copyright 2024 RunComfy. All Rights Reserved.