On Jun 7, 9:13 am, "Michael A. Covington"
> What is meant by "the first file within a directory"? First in what sense?
> The one that happens to be the first entry stored in the directory? Why is
> that useful? Or do you mean the first after the files are sorted by some
> criterion, such as name or age?
Does the 'First' file mean the first file you can see in windows
explorer. As per default setting files are sorted based on FileName.
Clarify what exactly you want to achieve. If it's filename sort order
you can use Array.Sort method as pointed out by Arnold.