Pages: [1]   Go Down
Author Topic: HOw to find the size of a file in SD card  (Read 463 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 14
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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..........
Logged

Sydney, Australia
Offline Offline
Edison Member
*
Karma: 27
Posts: 1184
Big things come in large packages
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

How does your code actually know which file you are looking at?
Logged

Arduino libraries http://arduinocode.codeplex.com
Parola hardware & library http://parola.codeplex.com

Pages: [1]   Go Up
Jump to: