adrianjohnson
Programmer
Hi everyone,
I've written some Java which reads a text file, and then puts each line from the text file into an array. I then loop through each element, and seperate bits (such as data/time, details etc) and put them into seperate arrays for processing later on.
An example is:
22/07/2004-10:00-Log entry
However, as the entries in the text file aren't ordered, I want to display the entries in a list box, but in date/time order. I've looked at sorting arrays, but wondered if anyone had any code to hand that helps.
Let me know if you need more info.
Thanks,
Adrian Johnson
I've written some Java which reads a text file, and then puts each line from the text file into an array. I then loop through each element, and seperate bits (such as data/time, details etc) and put them into seperate arrays for processing later on.
An example is:
22/07/2004-10:00-Log entry
However, as the entries in the text file aren't ordered, I want to display the entries in a list box, but in date/time order. I've looked at sorting arrays, but wondered if anyone had any code to hand that helps.
Let me know if you need more info.
Thanks,
Adrian Johnson