Recursively getting files in a directory with several sub-directories
- by yeahumok
Hello!
I was wondering if anybody here could help me out as I'm still very new to C#. I have a drive with folders w/in folders w/in folders that all contain files. Is there a way to recursively loop through the files and gather up all of these file names into a .txt file?
I'm not sure how to implement this into my Console app--so does anybody have any code that might help?