SPIFFS... Have to close file to read after write operation..?
Posted: Wed May 24, 2017 6:23 am
Hello,
I have an issue of SPIFFS read-write operation. I open file in read-write mode to write data into file, then try to read data without closing the file, but read operation fails with return of -1. But when I follow same procedure with adding extra step of closing file after file write and then again open file in read-write mode and then file read operation works perfectly.
Does anybody have came across same problem..? Can anybody explain it..?
Thanks.
I have an issue of SPIFFS read-write operation. I open file in read-write mode to write data into file, then try to read data without closing the file, but read operation fails with return of -1. But when I follow same procedure with adding extra step of closing file after file write and then again open file in read-write mode and then file read operation works perfectly.
Does anybody have came across same problem..? Can anybody explain it..?
Thanks.