New here, but not so much to Arduino.
I have a data logging (every 10-seconds) sketch using an SD card. It has me wondering what happens if the power is dropped before it finishes a write and never gets to the file.closed.
1: Timer = 10 seconds
2: ..Open file
3: ....write data
4: ....write data
5: ..close file
What happens to the data file is the power fails after line 3 and before line 5?
Will it trash the entire file or just not save the last data?