Click to See Complete Forum and Search --> : Checking directories for files....
avantos
May 29th, 2002, 02:31 AM
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
jparsons
May 29th, 2002, 08:05 AM
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
Which operating system are you using?
avantos
May 29th, 2002, 11:33 PM
Linux.
Actually, I just ended up writting it in pearl.... it seems much easier for what I am trying todo.
-Avantos
Plastelin
May 30th, 2002, 05:22 AM
ANSI C, it must work under Linux I think, I was checking only under Windoze.
_findfirst
_findnext
_findclose
avantos
June 1st, 2002, 07:23 AM
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.
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.