Write a simple text / HTML file

To my surpise, I found a solution. It’s called “Binary Objects”, which is not intuitive at all. A simple example would look like this:

grafik

The Table Creator creates a table with two columns: “test” containing the string I want to write to a file and “filename” containing the desired file.

The Strings to Binary Objects node even allows to set the encoding:
grafik

The Binary Objects to File node does support File System connectors.
The way to specify the filename is a little strange (one can not use variables), but works fine:

In my real-world scenario I am using it like so:
grafik

Two tables are converted to HTML, then the Filename is added as Column, then concatenate both, to Binary Objects and write the files via SSH. Works great.

3 Likes