Your new topic does not fit any of the above??? Check first. Then post here. Thanks.

Moderator: igrr

User avatar
By Dr pepper
#66565 I use spiffs to store nearly all of the html data for a webpage, including some javascript, the page also has a googlegraph displayed, and then use server.stream to send it to a browser on access.
I put most of the data in the spiffs file, and left the datatable for the google graph right to the end of the html file, this is then inserted into the html page file by buidling a string using measured data for the datatable, followed by a page footer </body></html> etc, using server.send.
Building the string uses loads of heap leaving little (few hundred bytes) for the system.
So I'd like to write to the spiffs file and add/update the googlegraph datatable, without having to use loads of heap.
Can I modify a spiffs file without reading the whole thing into memory?