Advertisement Jump to content
Sign in to follow this  

console/OS pillow talk

This topic is 4878 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
Sign in to follow this  

  • Advertisement

Important Information

By using, you agree to our community Guidelines, Terms of Use, and Privacy Policy. is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!