Click here to Skip to main content
15,915,836 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi
I need to recursively read a directory and its sub directories and files present.
I know i can use the same using opendir() and readdir().

But not familiar with how to do it. Is there any tutorial which can explain me headers used and examples for the same?
Posted

Here are two links you might find useful:
Files and Folders [^]
Read Directory[^]
 
Share this answer
 
It really is about time you started using Google for yourself and making an effort to find the answers to these simple questions before posting in this forum. You seem to be writing a program line by line with no background knowledge of the functions or structures you need to get the program to work.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900