View Single Post
Old 10-13-2003, 12:27 PM   #2 (permalink)
redhead
Newbie
 
redhead's Avatar
 
Join Date: Jun 2002
Location: Denmark
Posts: 1,726
redhead is on a distinguished road
Hmm... this isn't C++, but on *nix systems there are opendir(), readdir(), scandir(), seekdir() and closedir().
opendir() returns a DIR*, which readdir() (and the other functions) uses to see which files are placed in the opened directory. And in case, if the filename is another directory.. So I guess with a few loops you could walk through an entire directory structure, based on the file types found in matching directories.
__________________
Don't worry Ma'am, We're university students, We know what We're doing.
-----
If you pull the pin, Mr.Grenade would no longer be your friend.
-----
01000111 01101111 00100000 01000011 00100000 00100001
redhead is offline   Reply With Quote