What's the best way to get a directory listing in C++? OS is Windows XP Pro SP2. I've been using
system("dir /b > tempfile.txt");
Then I just read-line the file into an array.
I know there's a better way to do it, maybe a *.h file somewhere that provides a class or some utility for it.
system("dir /b > tempfile.txt");
Then I just read-line the file into an array.
I know there's a better way to do it, maybe a *.h file somewhere that provides a class or some utility for it.