0 registered members (),
821
guests, and 2
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Read data out of folder
#299702
11/26/09 08:31
11/26/09 08:31
|
Joined: Jan 2004
Posts: 3,023 The Netherlands
Helghast
OP
Expert
|
OP
Expert
Joined: Jan 2004
Posts: 3,023
The Netherlands
|
Hey guys, been a while since I asked for help here ![tongue tongue](/ubb7/images/graemlins/default_dark/tongue1.gif) But this question I looked for in the manual, but couldn't find anything related... I wanna read out specific filetype files from a folder, is there a way to store all filenames of them in an array? (maybe just every file in the folder, then i can seperate out all the specific's I want myself by looking at it's extension). anyone know's how to, or could write me some code/DLL? thanks!
|
|
|
Re: Read data out of folder
[Re: Helghast]
#299707
11/26/09 08:57
11/26/09 08:57
|
Joined: Feb 2008
Posts: 3,232 Australia
EvilSOB
Expert
|
Expert
Joined: Feb 2008
Posts: 3,232
Australia
|
C'mon man...
Check the manual...
txt_for_dir( TEXT*,STRING* name)
:b
"There is no fate but what WE make." - CEO Cyberdyne Systems Corp. A8.30.5 Commercial
|
|
|
Re: Read data out of folder
[Re: EvilSOB]
#299717
11/26/09 10:39
11/26/09 10:39
|
Joined: Jan 2004
Posts: 3,023 The Netherlands
Helghast
OP
Expert
|
OP
Expert
Joined: Jan 2004
Posts: 3,023
The Netherlands
|
HAHAHHAHAAAA, oh, i'm so ashamed xD I kept on looking for "folder" and "file", but never looked for this... thanks for pointing that out ^__^ Sometimes you just need a push in the right position, and I couldnt imagine this wouldnt be supported already... thanks again ![laugh laugh](/ubb7/images/graemlins/default_dark/laugh.gif)
|
|
|
Re: Read data out of folder
[Re: Helghast]
#299805
11/27/09 08:29
11/27/09 08:29
|
Joined: Feb 2008
Posts: 3,232 Australia
EvilSOB
Expert
|
Expert
Joined: Feb 2008
Posts: 3,232
Australia
|
Keep Sepiantum's suggestion in mind though Helghast. txt_for_dir is missing some capabilities.
I think it is incapable of listing sub-folders or something like that. It ONLY will list files, and those files MUST have some extension. Or something like that....
Damn my long-term memory.
"There is no fate but what WE make." - CEO Cyberdyne Systems Corp. A8.30.5 Commercial
|
|
|
Re: Read data out of folder
[Re: EvilSOB]
#299812
11/27/09 09:28
11/27/09 09:28
|
Joined: Jan 2004
Posts: 3,023 The Netherlands
Helghast
OP
Expert
|
OP
Expert
Joined: Jan 2004
Posts: 3,023
The Netherlands
|
Keep Sepiantum's suggestion in mind though Helghast. txt_for_dir is missing some capabilities.
I think it is incapable of listing sub-folders or something like that. It ONLY will list files, and those files MUST have some extension. Or something like that....
Damn my long-term memory. That's fine, all i really want is to read .bmp files out of a single folder (nothing nested or whatever in there). It's good for future reference, I agree, who knows i might need it later anyway ![laugh laugh](/ubb7/images/graemlins/default_dark/laugh.gif) for now i can load all the strings, and read it out and load them bmp's using pstring, that's all I wanted ^_^ regards,
|
|
|
|