it was this that brought me to speedguide so only fitting I drop the answer...
DirectoryInfo info = new DirectoryInfo("DIRECTORY_PATH");
FileInfo[] files = info.GetFiles().OrderBy(p => p.CreationTime).ToArray();
![]()
How to Open a Directory Sorted by Date?
In C#, I can open a directory for reading each file. How to I make sure that the directory I investigate in my C# code is opened such that it is sorted by last modified date?
it was this that brought me to speedguide so only fitting I drop the answer...
DirectoryInfo info = new DirectoryInfo("DIRECTORY_PATH");
FileInfo[] files = info.GetFiles().OrderBy(p => p.CreationTime).ToArray();
![]()
Bookmarks