Answers

Jan 22, 2007 - 10:02 AM
Hi,
I could now start writing a sample etc. but I must admit, others have already done this. Although I do not like to answer questions with a simple link to a web page, I recommend to look at these two articels:
http://aspnet.4guysfromrolla.com/arti...
and
http://aspnet.4guysfromrolla.com/arti...
This artcle explains exactly how it is done. It provides a way to sort a FileInfo array using all different properties of a fileinfo object.
Let me know if this helped you
Cheers
Peter
I could now start writing a sample etc. but I must admit, others have already done this. Although I do not like to answer questions with a simple link to a web page, I recommend to look at these two articels:
http://aspnet.4guysfromrolla.com/arti...
and
http://aspnet.4guysfromrolla.com/arti...
This artcle explains exactly how it is done. It provides a way to sort a FileInfo array using all different properties of a fileinfo object.
Let me know if this helped you
Cheers
Peter

Jan 27, 2007 - 03:14 AM
Thanks, Peter. This is an advanced way of doing it. Actually I found out that for my needs I only need to sort them alphabetically (which for some reason they weren't by default), so I ended up doing this:
string[] files = Directory.GetFiles(filePath);
Array.Sort(files);
You get the points, nevertheless...
string[] files = Directory.GetFiles(filePath);
Array.Sort(files);
You get the points, nevertheless...
Add New Comment