Reading directories in C++
Posted on 2003-03-29
I am trying to find a way that a C++ console program can opena directory and red its contents, that is, read the filenames contained therein. This program is going to be run on Windows, which is my problem. I know there is a dirent.h file for UNIX, that has open directory and read directory functions, but I am having problems finding such a resource for a windows program. Can anyone help?
The purpose for reading this directory is to retrieve the filenames and store them as character strings in a linked list.
I believe there are Win32 programs that cn also do that, but they use all the long words and whatnot. I'm only just now getting into Win32 programming.