Possible Duplicate:
Can you call Directory.GetFiles() with multiple filters?
I have a string array:
string[] pattern={"*.jpg","*.txt","*.asp","*.css","*.cs",.....};
this string pattern
string[] dizin = Directory.GetFiles("c:\veri",pattern);
How dizin variable C:\veri directories under the directory of files assign?
You could use something like this
Or use
FileInfo.Extensionbit safer thanString.Splitbut may be slowerOr as juharr mentioned you can also use
System.IO.Path.GetExtension