WildCard Search

  • Thread starter Thread starter MFRASER
  • Start date Start date
M

MFRASER

Is there a way to get a list of files that match a wildcard search?
c:\temp\test.xml
c:\temp\test2.xml
c:\temp\test32.xml
c:\temp\123test33.xml

I want to get a list of c:\temp\test*.xml

so I should get a collection of three file items
 
string[] dirs = System.IO.Directory.GetFiles(@"c:\temp\", "test*.xml");
 

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