Help in SD Card. How to remain the old file and save a new file not replace.

Hi Guy, I have a question about SD Card.

I want to know how to code this scenerio.

You have a old file in the SD card but you don’t want it to be deleted or be removed, you don’t want it also to be over write. I want to happen is that when there is a old file i want that i can save again a new file without affecting the old data.

That can make it create more files, such as datalog1.txt, datalog2.txt… not deleting the old one and replace it with new.

There is a method in the SD class hierarchy to determine if a file exists(). YOU need to be responsible for not crapping on a file you don’t want crapped on.

Yes. I want that can create more files, such as datalog1.txt, datalog2.txt... not deleting the old one and replace it with new. Just create and create if you have a new data to gather.

bump

i want to delete this. thanks, dont know how

rajhefondo: i want to delete this. thanks, dont know how

That's because you can't.