How to display files in a directory

closed account (N36fSL3A)
Hello, I am trying to find a way to display files in a certain directory. I have tried many things, including Google, but that wasn't very helpful as it has continued to mention 'Boost' many, many times. I am looking for a way cross platform but if not, for the Windows operating systems only. This may not be beginner stuff but I thought it would be since it seems like a 'noobish' question. Thanks for your time. Reply as soon as possible!

P.S. (I don't have the slightest idea possible, so I have no code. Please make this easily flexible with many comments so I can adapt it to my needs)
Hey, I'm in the same boat (though I currently don't need it.)
Mayber you can use this header:

http://en.wikipedia.org/wiki/Dirent.h

I hope I could help you
closed account (N36fSL3A)
Thanks, I don't know if I mentioned that it had to be Windows and cross platform, or just Windows. Thanks, but I don't think that's going to work with windows. Any other solutions?
Last edited on by Fredbill30
I guess you haven't read the whole article. There's also a windows implementation - so it's a cross platform solution ;)
closed account (N36fSL3A)
Is there a way I can use this with Microsoft Visual C++ Express Edition? It looks like it will do the job.
http://www.softagalleria.net/dirent.php

This link is also located on the bottom of the wiki article ;)
closed account (N36fSL3A)
I guess today just isn't my day, :P
Topic archived. No new replies allowed.