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!
Opening file in SD card
Moderator: Benj
-
- Posts: 28
- Joined: Mon May 26, 2014 8:51 pm
- Has thanked: 4 times
- 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
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
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
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
-
- Posts: 28
- Joined: Mon May 26, 2014 8:51 pm
- Has thanked: 4 times