Re: Reading Directory and Files

Tech-Archive recommends: Speed Up your PC by fixing your registry



I don't know if there is some way to sort the files in a folder by date but
you could do this by using Directory.GetFiles and then iterate through the
files and compare the dates with File.GetAttributes(path).

Rick


"Tim" <gtu@xxxxxxxxxxxxx> wrote in message
news:uuGo21FXHHA.4964@xxxxxxxxxxxxxxxxxxxxxxx
Can someone please tell me how I can get the last file added to a
directory ( I am assuming it is a file attribute). I have built a text
parsing application. Right now I have to manually get the file to load it
up. What I want to be able to do is have the application (on load) check
a directory, get the last file added and parse the file itself. Can
someone please tell me how to do this?

Thanks
Tim



.



Relevant Pages

  • Text parsing and substitution
    ... parse the line, ... load a hashmap with the key, ... I was thinking this sort of logic but a little apprehensive how elastic ...
    (comp.lang.perl.misc)
  • Sort does not work on user defined fields
    ... alphabetical order by subject. ... I would like to sort them ... by a user defined field first, then load them. ... pItems is my collection from the folder I am ...
    (microsoft.public.outlook.program_forms)
  • Re: Sort does not work on user defined fields
    ... Is a field defined on the folder, i.e. one whose data is visible in a ... > set pItems = pFolder.items.restrict(" ... I would like to sort ... >>> by a user defined field first, then load them. ...
    (microsoft.public.outlook.program_forms)
  • Re: Sort does not work on user defined fields
    ... That should work, assuming that Name is a field defined in the folder, not ... Administrators, Power Users, and Developers ... I would like to sort them ... > by a user defined field first, then load them. ...
    (microsoft.public.outlook.program_forms)
  • Re: Efficient algorithm for finding duplicates in 56-bit number
    ... >> quick or shell sort has to be used to realistically load the table. ... >> after load during sort whereas open hash allows each entry to be ...
    (comp.programming)