Loading...
Pages: [1]   Go Down
Author Topic: HOw to find the size of a file in SD card  (Read 283 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
Offline Offline
God Member
*****
Karma: 14
Posts: 717
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


Pages: [1]   Go Up
Print
 
Jump to: