some systems implement a findfirst function, look for it as _findfirst maybe the compiler should explain how to use it? also i've seen somewhere a function called listdir that had syntax something like this
PHP Code:
listdir(char * name, char * type, char * dir, bool branch);
name was the actuall name (NULL == *)
type was the extension (NULL == *)
dir was the directory
branch was if you wanted to recurse subdirectories.
But listdir may have been included in some library i had, or worst case scenario it could have been a different language (pascal maybe?)