Jump to content
  • Advertisement
Sign in to follow this  
hisDudeness

console/OS pillow talk

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

Hey ya, I'm writing a very simple C++ console program which, among a lot of other nonsense, performs two main objectives that I can't figure out how to implement: (1) I want it to look for a subdirectory within a folder. If the subdirectory is not there, I want the program to create such a folder. (2) Most importantly, I want it to query a folder for a list of all its contents, subdirectories and files alike. As for the first problem, I know how to use file streams to open/make new files. But what about folders? And for the second problem, my guess is there is some routine for querying the OS to return a "file pointer" or something like that. In any event, I'm lost and need help. I know Windows programs have those nice little file dialogs that "map out" a specified folder. But I'm courageously attempting to do the same thing, except with a console application. Why? Because I can.

Share this post


Link to post
Share on other sites
Advertisement
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!