Results 1 to 2 of 2

Thread: How to Open a Directory Sorted by Date?

  1. #1

    How to Open a Directory Sorted by Date?

    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?

  2. #2
    Junior Member
    Join Date
    Jul 2022
    Location
    Scotland
    Posts
    1
    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();


Similar Threads

  1. Closing unnecessary open ports
    By gsanyal in forum Network Security
    Replies: 0
    Last Post: 04-21-09, 11:34 AM
  2. when tcp/0 is open, filtered is it harmless?
    By finkey in forum Network Security
    Replies: 0
    Last Post: 03-11-09, 05:03 PM
  3. Were can I find what slot I have for vid card
    By agustintorre in forum Hardware & Overclocking
    Replies: 51
    Last Post: 02-10-07, 05:59 AM
  4. Yummy VISTA Home Premium
    By Lobo in forum Broadband Tweaks Help
    Replies: 2
    Last Post: 02-04-07, 03:57 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •