How can i open a directory to see what the file names are in the directory? Is it possible to just open the directory and when you (fin >>) you get the file names?
Any help would be much appreciative.
-Avantos
Printable View
How can i open a directory to see what the file names are in the directory? Is it possible to just open the directory and when you (fin >>) you get the file names?
Any help would be much appreciative.
-Avantos
Which operating system are you using?Quote:
Originally posted by avantos
How can i open a directory to see what the file names are in the directory? Is it possible to just open the directory and when you (fin >>) you get the file names?
Any help would be much appreciative.
-Avantos
Linux.
Actually, I just ended up writting it in pearl.... it seems much easier for what I am trying todo.
-Avantos
ANSI C, it must work under Linux I think, I was checking only under Windoze.
_findfirst
_findnext
_findclose
Awesome, thanks!
That helps tremendously. Cause i got a perl script working...but being perl, it's hella slow. So doing this in C++ should speed it up a bit.