title: Search for file in c#
body: <p>I wanted to search for files in c# begin with a string.
  I followed the code in the internet </p>
  
  <pre><code>string[] dirs = Directory.GetFiles(@"c:\", "c*");
  </code></pre>
  
  <p>but instead of finding <code>"c"</code>, I want to find files contains a string (i mean the file name for example contain.txt and contain.pdf both has "contain") i created. Here is my code</p>
  
  <pre><code>string filetofind;
  string[] dirs = Directory.GetFiles(@"c:\", filetofind + "*");
  </code></pre>
  
  <p>but it just not working, is there anyway else?</p>