Pages: [1]   Go Down
Author Topic: How to get filename or file type with official SD.h ?  (Read 513 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 6
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello everyone.

I've seen examples with the SDfat in  the loop section.

But I'm using webduino and would like to know if there is a simple way to get the file name or file type of a file in the SD card using just the SD.h library?

Could no find an example out there.

Thank You,
Logged

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 614
Posts: 49343
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
But I'm using webduino and would like to know if there is a simple way to get the file name or file type of a file in the SD card using just the SD.h library?
Webduino doesn't give you a file handle. The only way to get a file handle is to open a file on the SD card. It seems to me that you could remember the name of the last file opened. Or, the name associated with a given handle, if you have more than one file open at a time.

Perhaps you need to explain your question differently.
Logged

Pages: [1]   Go Up
Jump to: