Jump to content
  • Advertisement
Sign in to follow this  
KuroiRiquid

Returning which files are in a folder.

This topic is 4572 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

I'm writing the functions to load a custom map in my game and I need to figure out how to have my program figure out which files are in a certain folder. I'm using C++ and writing exclusively for a windows system. I assume there are some functions in the windows API to do this but I have no idea which ones and I'm not haveing any luck at all finding information about how to do this online. Hopefully some of you out there can point me in the correct direction. Thanks in advance. (-^.^-)

Share this post


Link to post
Share on other sites
Advertisement
Quote:
Original post by bakery2k1
Win32. I suppose the more standard C++ way of doing things would be to use Boost filesystem.


dang, I should of used this.
Instead I made my own custom file management class using stat... ( and this happened not even a week ago )

Share this post


Link to post
Share on other sites
Here is a hack, not very usefull thought:

system("dir >> txt.txt");
fopen(f,"txt.txt");
fread(..);
fclose()


It is highly dependable but works, hehe.. As I said
it is a hack and unrealiable.

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!