Create text file from string

I need to spit out a text file from a string value (some temperature and security states) and then upload to an FTP server. Each time should overwrite the file. I’m familiar with the notify file thing, but that doesn’t do what I need. What can I do?

Anyone? Anyone?

There’s an FTP add-on which may help, but I’ve no idea how to create the text file.

The File integration might help:

There’s a thread about creating csv files here: