Possible Duplicate:
How do you get a directory listing in C?
Listing directory contents using C and Windows
How do you write a program which lists the directories recursively just like dir /s C:\ in the command prompt?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can call the Windows API
FindFirstFileandFindNextFileto iterate in a directory and do it recursively on subdirectories. See the Example on MSDN.