Getting filenames from a directory
<pre><code>string[] klasorlistesi = Directory.GetFiles(path+"//notlar//");
foreach (string eleman in klasorlistesi)
    listBox1.Items.Add(eleman);
</code></pre>

<p>I'm getting the datas from an array with through above code inside listBox.<br>
BTW the file has no extension.  </p>

<p>My question is:<br>
<strong>I want to appear the file as only <code>"not"</code> instead of <code>"C:\Users\Documents\Visual Studio 2008\not"</code> inside the Listbox.</strong>  </p>

<p>Also, I tried a thing like below code, but it's not working:</p>

<pre><code>System.IO.Path.GetFileName(@"C:\Users\Documents\Visual Studio 2008\not");
</code></pre>

<p>How can I do that?</p>
