Hi,
I am just playing with the Dataflash.h library for my Energy Harvesting project. During the runtime of my Arduino, there is partly no power available. Sadly all data on my Flash Memory are deleted. Does anyone have a clue, why this is?
SD files go by DOS rules. One is that the File Allocation Table does not get updated on new sectors written until the file is closed. You can write data all day but if you don't close the file you lose it.
It's the same way for HD and FD files btw. Lose lose lose.
Common practice is to every so often or with every line or record close the file and reopen it for append (starts writing at the end of the file) to get the next writes.