I just modified the program to load some values into the buffer, for the write() and then to zero the buffer before the read(). With that I can confirm that as far as read is concerned, the data was nt0 stored or read...
Then, I tried "quickformat". The command list files shows that the file has gone away. Save temp.txt, again creates an empty file.
So, I feel confused. Why is write() not writing anything to the file?
At startup it reports
Space Used = 65536
Filesystem Size = 65536
After writing the file, save temp.txt, the list command produces the following. It shows that the file has been created, but the size is 0...
Command: save temp.txt
Response:
saved to temp.txt 4096 0
The first number is the number of bytes that were supposed to be written. The last number is the size returned by file.size() immediately after...
Following is a complete source code.
The intent is to use LittleFS to save and recall data to and from program memory on a T4.0. The directory listing shows the file is created but that it has zero size.
What I...
Doctorate in Chemistry and Physics, former faculty in Materials Science at a big ten school, scientist in x-ray diffraction, spectroscopy and instrumentation at a National Lab. Currently working on lasing, lighting and quantum information applications in organic semiconductors.