Geeks With Blogs
Neil Smith [blog]code til ur fingers bleed July 2008 Entries
Directory.GetFiles() in Modified Date/Time Order Pt2
Following on from this. I've noticed that it only gives you to the second accuracy. If your software is capable of making more than one file per second, the sort order will be date/time to the second then alphanumerically on the filename. Not ideal if your filenames are guids, the following class gives date/time sort accuracy of 100 nanosecond intervals then alphanumerically on filename :- 1: Imports System.IO 2: Imports System.Runtime.InteropServices 3: Imports System.Runtime.InteropServi... ......

Posted On Thursday, July 10, 2008 9:19 PM

Copyright © Neil Smith | Powered by: