Sign in to follow this  

Reading directories in c/c++

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this