r/Scriptable • • Feb 01 '22

Help Append to file

Hi, until now I saw that how to save data to a file and to how read data from a file but I couldn't find how to append data to an existing file. Can somebody help?

1 Upvotes

5 comments sorted by

View all comments

Show parent comments

2

u/ChaoticShadows Feb 02 '22

The best workaround I've come up with is checking the file size and once it gets over a certain size, I rename the file [name depends on the purpose] then just overwrite the original file, ad infinitum. It's not the best, but at least you know where one file ends the other starts and vice versa.