There is a “Read/Write Files from Disk” node that does exactly that.
Since all my n8n instances run on *nix systems, I can’t say for sure how it behaves on Windows. However, the directory must already exist and have the necessary permissions.
If n8n is running in Docker on Windows, the file path will be different and needs to be adjusted to match the mounted Docker volumes.
Yes, it will overwrite. You can check with an ‘execute command’-node and use ‘ls {{filename}}’ to see if it exists already and then use an ‘If’-node to skip the ‘Read/Write Files from Disk’-node after.