So basically I want to have a new file on my SD card every time the Arduino is rebooted, without replacing the same file every time. In other words, if I reboot the Arduino 3 times I want to end up with 3 different files and not one file only. The current code which you can see below gives me only one file no matter how many times I try to reboot.
(I tried adding the to the void loop section, however, it does not do what I want.)
As you can see also I added the random-number command so that it creates a different file name and does not overwrite the same file that it created the first time, but unfortunately did not work. So, can anyone find a solution, please?
sketch_jan20a.ino (647 Bytes)