Opening file in SD card

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 6.

Moderator: Benj

Post Reply
ahmedkhalid
Posts: 28
Joined: Mon May 26, 2014 8:51 pm
Has thanked: 4 times

Opening file in SD card

Post 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!

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: Opening file in SD card

Post 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

ahmedkhalid
Posts: 28
Joined: Mon May 26, 2014 8:51 pm
Has thanked: 4 times

Re: Opening file in SD card

Post by ahmedkhalid »

Thanks Benj!
I really appreciate your prompt reply.

Post Reply