How can I just get the base filename from this c# code
<p>I have the following code:</p>

<pre><code>string[] files = Directory.GetFiles(@"C:\Notes", "*.txt", SearchOption.TopDirectoryOnly);
foreach(string file in files)
</code></pre>

<p>When I check the contents of file it has the directory path and extension. Is there a way I can just get the filename out of that?</p>
