title: How do I retrieve all filenames in a directory?
body: <p>How do I retrieve all filenames matching a pattern in a directory? I tried this but it returns the full path instead of the filename.</p>
  
  <pre><code>Directory.GetFiles (path, "*.txt")
  </code></pre>
  
  <p>Do I have to manually crop the directory path off of the result? It's easy but maybe there is an even simpler solution :)</p>