Pages: [1]   Go Down
Author Topic: HOw to find the size of a file in SD card  (Read 462 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
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();

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

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

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

Arduino libraries
Parola hardware & library

Pages: [1]   Go Up
Jump to: