0
Adding content to Json instead of replacing content.
my code is writing all text from a web form to a Json file using a session variable but if I fill the form again the new text will be written to the Json file, replacing the contents before. How can I save each entry to json I stead of replacing?
1 Answer
+ 3
well, no answers yet..but been thinking as theFilr.write.all overwrites everything therefore could upon initial pageload I could read all text from file the add it back to collection and add new text, then finally write them all togheter.