What does this mean?
if (!fileToFind.Contains("*"))
fileToFind = "*" + fileToFind + "*.*";
Code translation please
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
VulpesRank #55 · 29.2K reputationPosted May 29, 2012, 11:12 AM EDT
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 jane3 reputationPosted May 29, 2012, 1:42 PM EDT