| | |
Open Text File And Sort
Please support our C# advertiser: Intel Parallel Studio Home
Thread Solved |
•
•
Join Date: Sep 2007
Posts: 9
Reputation:
Solved Threads: 0
I identified the debugger error....apart from that it is out of my league 
but i got it working and it does what i want so i'll quit while im ahead i think
here is a link to the code for future reference....or for anyone thats interested.
http://files.filefront.com/LoginSort.../fileinfo.html

but i got it working and it does what i want so i'll quit while im ahead i think

here is a link to the code for future reference....or for anyone thats interested.
http://files.filefront.com/LoginSort.../fileinfo.html
Just for the gallery, see first part of code in my previous post:
string format = "MM.dd.yyyy HH:mm:ss";
lines.Sort(new Comparison<string>(delegate(string a, string b)
{
string dateA = Regex.Match(a, "\\[(.+)\\]").Groups[1].Value;
string dateB = Regex.Match(b, "\\[(.+)\\]").Groups[1].Value;
return (DateTime.Compare(DateTime.ParseExact(dateA, format, null),
DateTime.ParseExact(dateB, format, null)));
}));
Last edited by _r0ckbaer; Sep 25th, 2007 at 7:41 pm.
![]() |
Similar Threads
- how can we sort data from text file (C++)
- text file strings help (Visual Basic 4 / 5 / 6)
- Open a text file from another project (VB.NET)
- read from database and writing the contents into a text file (C)
- sorting a text file (C++)
- How to delete a row in text file? (Visual Basic 4 / 5 / 6)
- Help Reading Info in Text File Into an Array (C++)
- How to send text to a text file using j2me through http connection? (Java)
Other Threads in the C# Forum
- Previous Thread: Invalid Cursor Position
- Next Thread: Static use
| Thread Tools | Search this Thread |
.net access activedirectory ado.net algorithm array barchart bitmap box broadcast buttons c# check checkbox client color combobox connect control conversion cryptographyc#winformsencryption csharp custom database datagrid datagridview dataset datetime degrees development disabled displayingopenforms draganddrop drawing encryption enum event excel file foreach form format forms ftp function gdi+ httpwebrequest image index index-error input install java label list listbox mandelbrot math mathematics mouseclick mysql operator path photoshop picturebox pixelinversion post prime programming radians regex remote remoting richtextbox serialization server setup sleep socket sql statistics stream string table text textbox thread time timer totaldays update user usercontrol validation visualstudio webbrowser windows winforms wpf xml





