Jump to content
  • Advertisement
Sign in to follow this  
CProgrammer

getting directory files

This topic is 4072 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi guys, I'm using c++ and Im looking to find a way to get all files within a certain directory, it can just be all files in the parent directory. Basically I need an array holding all the file paths. Id do an extensive google search but Im really in a hurry to meet a deadline so im asking this as a favor from any experts in C++ file io. Thank you very much in advance guys. -CProgrammer

Share this post


Link to post
Share on other sites
Advertisement
I'm nowhere near an expert, but boost::filesystem with directory_iterator looks like what you're looking for?

http://boost.cppll.jp/HEAD/libs/filesystem/doc/path.htm
http://www.boost.org/libs/filesystem/doc/index.htm
http://boost.cppll.jp/HEAD/libs/filesystem/doc/operations.htm

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!