Seems to me you could create a class implementing the "IComparer" interface,
put all your FileInfo's into an arraylist then call the
ArrayList.Sort(IComparer) method to get the work done cleanly.
Scott
"Daniel O'Connell [C# MVP]" <onyxkirx@--NOSPAM--comcast.net> wrote in
message news:e3**************@TK2MSFTNGP12.phx.gbl...
"Lee Holsenbeck" <Le***********@discussions.microsoft.com> wrote in
message news:CF**********************************@microsof t.com...
i have been using the getfiles method, but that retrieves only
alphabetically. i'd like to be able to retrieve filenames in a directory
by
thier date modified.
does .net have a method for this ?
the closest i can see is to use the file system object.
You'll probably have to just get the FileInfo objects and sort the
collection yourself. Shouldn't be too hard.