Jump to content
  • Advertisement
Sign in to follow this  

Reading directories in c/c++

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

Hello, I'm trying to generate a list of all the sub folders and files for a specific directory. As im going through the folders the names of the files will get stored in an html document. The problem im having is finding the number of files/folders that are already in a specific directory and then getting a pointer to that list. I'm currently using the "struct _stat" stucture but this only gives me the number of links to a specific file. Does anyone know how to do what im trying to accomplish. It should be noted that im working on a windows platform so a lot of the unix commands im used to using for this type of problem wont work. Thank you Jon

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.

GameDev.net 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!