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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top