What does this mean?
if (!fileToFind.Contains("*"))
fileToFind = "*" + fileToFind + "*.*";
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
VulpesPosted May 29, 2012, 3:12 PM
So, for example, if fileToFind contains "and", then it will be reset to:
*and*.*
As you may know an asterisk is used as a wild-card to represent any number of characters so the code is being used to find any file whose name contains the letters "and".
mary janePosted May 29, 2012, 5:42 PM