Now i want to find out how often the sketch has written into the File. Ok i will make in a Loop. But after 24 times i want to rename the file from xxxxxx.txt in xxxxxx.si1 and so on and so on.
I cant find a discription for Fileio.h with a rename class.
Thanks for your Solution. But for me it doesn't work, becauce the current Filename must be always the same. If i would find a command to rename the file, it would work mutch better, because if the fileio Function write with append and the file doesn't exist, it will be created.
Now i want to find out how often the sketch has written into the File. Ok i will make in a Loop. But after 24 times i want to rename the file from xxxxxx.txt in xxxxxx.si1 and so on and so on.
I cant find a discription for Fileio.h with a rename class.
Can anybody help me please?
::::SNIP::::
@Perseus01,
FileIO is a very simple library. There is NO rename. However, the filesystem is Linux you can make copy, or move. Use Process like this:
//
// Fake code only
//
Process.runShellCommand("cp filename.txt filename.si1")
// _OR_
Process p; // Create a process and call it "p"
p.begin("mv");
p.addParameter("filename.txt");
p.addParameter("filename.si1");
p.run(); // Run the process and wait for its termination