using System.Linq;
DirectoryInfo info = new DirectoryInfo("");
FileInfo[] files = info.GetFiles().OrderBy(p => p.CreationTime).ToArray();
foreach (FileInfo file in files)
{
// DO Something...
}
full credit to original post:
http://stackoverflow.com/questions/4765789/getting-files-by-creation-date-in-net
No comments:
Post a Comment