Read/write to text file on my desktop

I would like to read/write text log files on my desktop from n8n. The nodes that i remember doing this before don’t exist. Thank you for your help ahead of time.

Hey @Ellen_Warren hope all is good. Welcome to the community.

The node you are looking for is Read/Write Files from Disk.

The node has two operations - one for reading and one for writing.

NOTE: the node is only available in the self-hosted setup.

im using Execute workflow and Read/Write to disk nodes. i dont think im adding the values correctly. I’m getting the following error when sending a test message from a chat node Problem in node ‘Read/Write Files from Disk‘

This operation expects the node’s input data to contain a binary file ‘data’, but none was found [item 0]

Correct, in order to write to disk you need to have a binary.

To create a binary out of text you need to use Convert to File node, which will take the text and convert it into a text file binary, which you can then pass to Read/Write node to write to disk.

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