[Solved] multiple checks for file extension [closed]

[ad_1]

Try something like this to get an array of files that fit your pattern:

string[] files = Directory.GetFiles(
    DirectoryPath, 
    String.Format("{0}.*", fileNameOnly));

[ad_2]

solved multiple checks for file extension [closed]