stupid file/directory question
Back in my VB6 programming days I could use a function call dir("enter in file path or directory"). This worked out nice if I wanted to see if any files existed in a folder that contained a part of a string, for example(sFile = dir(sDir & "1.*")). If not files existed I would not have to loop through the entire folder, I cannot find something similar to this in C#. It seems like I have to loop through the folder and look at use the 'StartsWith' function or look at the left couple of characters in the file name. Is there a C# equivelant to what I am looking for?
thanks...