sort array of filenames by create-date

  • Thread starter Thread starter Jurgen Oerlemans
  • Start date Start date
J

Jurgen Oerlemans

Hello,

I created an array of files in a directory by doing a:

Dim FileArray As String() = IO.Directory.GetFiles(QueueSource, "*.Q")

My question is: How can I sort this array on the create-date of the files?

Best regards, Jurgen Oerlemans
 
* "Jurgen Oerlemans said:
I created an array of files in a directory by doing a:

Dim FileArray As String() = IO.Directory.GetFiles(QueueSource, "*.Q")

My question is: How can I sort this array on the create-date of the files?

Best regards, Jurgen Oerlemans

Get an array of 'FileInfo' objects and then sort them by create-date.
Maybe you'll have to write your own 'Comparer'.
 
LOL

--

OHM ( Terry Burns )
. . . One-Handed-Man . . .

Time flies when you don't know what you're doing
 
Back
Top