Merge 2 Text Files into 1

Hello everyone,

I am new to the n8n environment and have a question:

I would like to insert various inputs (for example: 1/1/3/5) into a script.

I am pulling these inputs from an Excel file. I have already managed to do that.

Now to my question.

I have two text files that I would like to merge into one. The content of the second text file should be appended to the content of the first text file.

Is that possible?

Thanks in advance!

Information on your n8n setup

  • **n8n version:Version 1.82.3
  • **Database default: SQLite)
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • **Running n8n via Docker
  • **Operating system: Win 11

Hello and welcome to the community!

There is more than one way to achieve this with n8n.
One approach could be to merge two inputs into a single item and then combine texts into a single entry using Code or Set node.

I kept your former Convert to File nodes detached for reference.

Couldn’t test the solution, as the data and its structure is not clear from your post. You could pin the output of Extract from File node and repost the workflow with pinned data.

Just in case, here is how to pin data: Google sheet: data is replaced in the existing row instead of adding new row - #8 by Olek

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.