Go Down

Topic: HOw to find the size of a file in SD card (Read 829 times) previous topic - next topic


I am using sparkfun can_bus shield which has SD card ,I am able to store the data and I need to know the size of the file.

File myFile;
uint32_t amount=myFile.size();

when I use this code It returns 0,
can somebody help me..........


How does your code actually know which file you are looking at?
Arduino Libraries https://github.com/MajicDesigns?tab=Repositories
Parola for Arduino https://github.com/MajicDesigns/Parola
Arduino++ blog https://arduinoplusplus.wordpress.com

Go Up