Hi have a problem with my SD card.
(PREMISE: I have formatted SD as low level and I tried many sd cards but the problem is the same. I have an Arduino Uno with an ethernet shield and a SD card formatted like FAT32)
I was to trying to read and write a file .xml on my SD card when I noticed that:
reading and writing several times with the my same functions(readfile and writefile) the data were unpacked on corrupted!!!
why?????
The strange things is that if I call for the first time these functions(readFile and writeFile) I have the expected results, but if I try to recall the same functions the file xml is unpacked ( i have lost old message present in the sd card!)
Please, help me
sketch_oct20c.ino (1.78 KB)