How can I find all files in a directory structure?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Can someone please tell me the method in C# I use to search a directory structure to find all files with the same name. I was hoping some sort of array would be returned or something

Thanks in advance
Cyd
 
Hi, Cyd

take a look at Directory.GetFiles method.

HTH
Alex

Cyd said:
Can someone please tell me the method in C# I use to search a directory
structure to find all files with the same name. I was hoping some sort of
array would be returned or something.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top