Skip to main content
gamedev.net
🔒 Locked

getting directory files

Started by CProgrammer Jul 27, 2007 at 9:46 AM 1 replies 600+ views
Original Post
CProgrammer
CProgrammer
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
TheUnbeliever
TheUnbeliever
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
[TheUnbeliever]

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.