Go Down

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

bhaskar

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();
Serial.println(amount);

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

marco_c

How does your code actually know which file you are looking at?
Arduino Libraries http://arduinocode.codeplex.com
Parola for Arduino http://parola.codeplex.com

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy