samit_ray
Registered: 11/05/12 Posts: 52
|
|
Posted 09/07/12 at 10:01 PM
|
Reply with quote
#1
|
|
In SGC mode we are able to get a directory listing using the extended commands for uVGAII, However since then I have ported most of my project to GFX as there is a big performance improvement (may be its just my percecption)
I have not been able to locate any call in the internal guide to get file names for a wild card search. file_Dir(*.*) returns a count of matching files but not the actual file names.
The file_Dir() talks of streaming the file name, but how it is to be done is not very evident.
Is there any thread or example somewhere?
|
|
Loading...
|
|
ipaq3115

Registered: 12/11/11 Posts: 139
|
|
Posted 09/07/12 at 11:56 PM
|
Reply with quote
#2
|
|
Check out FAT16dir2.4dg in the picaso examples folder.
Shows something like this.
Quote: var filenames[100]; to(filenames); file_Dir("*.*"); print([STR] filenames);
That puts all the file names into a string. Then you can use all of the string functions on it.
|
|
Loading...
|
|
samit_ray
Registered: 11/05/12 Posts: 52
|
|
Posted 12/07/12 at 12:05 PM
|
Reply with quote
#3
|
|
dart!!! did not check through the samples (on my disk) will try it later, got a few other issues (other thread)
|
|
Loading...
|
|