How to take first file name from a folder in C#
<p>I need to get the first file name from a folder .How i do it in C#?
My below code return all the file names.pls guide:</p>

<pre><code>DirectoryInfo di = new DirectoryInfo(imgfolderPath);
foreach (FileInfo fi in di.GetFiles())
{
    if (fi.Name != "." &amp;&amp; fi.Name != ".." &amp;&amp; fi.Name != "Thumbs.db")
    {
        string fileName = fi.Name;
        string fullFileName = fileName.Substring(0, fileName.Length - 4);

         MessageBox.Show(fullFileName);
    }
}
</code></pre>

<p>I just need the first file name.pls guide</p>

<p>thanks 
Riad</p>
