J
John
Hi,
The following statement throws an exception when the
search pattern returns no files:
string[] files = Directory.GetFiles(directory,"*pl*.txt");
Is there any way to find out whether there isn't a match
so that I don't have to wrap the above code up in a try-
catch block?
John
The following statement throws an exception when the
search pattern returns no files:
string[] files = Directory.GetFiles(directory,"*pl*.txt");
Is there any way to find out whether there isn't a match
so that I don't have to wrap the above code up in a try-
catch block?
John