Click here to Skip to main content
15,886,362 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
I have a project(WFA) in this project there is a need to find the numbers of folders and files with there name
Posted
Updated 30-Jun-12 9:30am
v2
Comments
[no name] 30-Jun-12 15:37pm    
Okay... so go ahead and do it!

Google before you post

A google of solutions here...

http://www.lmgtfy.com/?q=listing+all+files+in+a+directory+c%23[^]
 
Share this answer
 
If you have a think about what you are trying to do, you will see that you need to do something with the Directory class. Perhaps there's a method that would let you get files; gosh, could it be called GetFiles? Do you also think there might be a method that would let you get directories as well? Go on, I'll let you guess what that one is called.
 
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