My experience with using XML and text files in Vuo up to this point has only been to read them. Now I have a project that requires me to write and append to an XML or text file. I have been looking at Format Table and Make Tree nodes but they don't see how they would allow you to add to an existing file. Basically we have an event that's about 1-2hrs long where I need to create a VUO composition that every 20-30 seconds appended a few strings of generated text to a file (Name, Program and Time-Stamp). Can Vuo do this? It seems risky to have to reload the file and add to it and re-save back to the same file every 20-30 seconds. I would be in a mess if the file became corrupted.

Any ideas how to safely accomplish this?

Comments

Vuo doesn't have an option to

jstrecker's picture
Submitted by

Vuo doesn't have an option to append to a file, only create a new file or overwrite an existing file (Save Data node). Since you're nervous about overwriting, what you could do is save each table row to a separate file whose name is the timestamp, then after the event use cat on the command line to combine the files.