Re: Reading Directory and Files
- From: "Rick" <Rick@xxxxxxxxxxxxxxxxxx>
- Date: Thu, 1 Mar 2007 18:34:44 -0600
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
.
- References:
- Reading Directory and Files
- From: Tim
- Reading Directory and Files
- Prev by Date: Re: Strange DLLs created into program folder
- Next by Date: Re: Strange DLLs created into program folder
- Previous by thread: Reading Directory and Files
- Next by thread: Re: Reading Directory and Files
- Index(es):
Relevant Pages
|