Page 1 of 1
Opening file in SD card
Posted: Tue Sep 02, 2014 3:04 pm
by ahmedkhalid
Hello Everyone!!
I want to know that how many number of bytes the function "Open file" of fat/SD card can accepts as an argument to open a file??
Thanks!
Re: Opening file in SD card
Posted: Tue Sep 02, 2014 3:14 pm
by Benj
Hello,
The Open file and Create file macros expect a 8.3 type filename.
For example test.txt would be entered like this.
"test.txt"
But a longer filename such as BensTestFile.txt would need to be entered like this.
"BensTe~1.txt"
Because of this is it advised to use a filename length of 8 characters or less and a file type of 3 characters.
If you must use long file names then there is some more info here on short path names:
http://superuser.com/questions/348079/h ... ctory-file
Re: Opening file in SD card
Posted: Thu Sep 04, 2014 9:12 pm
by ahmedkhalid
Thanks Benj!
I really appreciate your prompt reply.