Is there a way to overwrite a file stored on an sd card without removing and then recreating the file every time?
Right now we are repeatedly opening and closing the file, but that does not over write the file. It just appends.
Thanks
Is there a way to overwrite a file stored on an sd card without removing and then recreating the file every time?
Right now we are repeatedly opening and closing the file, but that does not over write the file. It just appends.
Thanks
You can check whether a file exists and if so delete it if needs be.
Right now we are repeatedly opening and closing the file, but that does not over write the file. It just appends.
The second argument to the open() method defines HOW to open the file. Open for read? Open for write? Open for append? Open and truncate? Just HOW are you opening the file?
Perhaps the real question is why you are not opening the file the way you want.