View Single Post
Old Jun 1st, 2006, 4:07 AM   #11
Adak
Hobby Coder
 
Join Date: May 2006
Posts: 58
Rep Power: 0 Adak is an unknown quantity at this point
Quote:
Originally Posted by sakuntala
Yes Iam supposed to sort thr whole lot into one sorted output text file.
Are the files in this order, although unsorted?

Primary sortkey, secondary sortkey, tertiary sortkey, etc.?

And what is your operating system, pray tell? I'm assuming it's Windows since the file you uploaded appears to be a Windows text file. Just to be sure though.

*YOU* could be in like a porch climber!

I've certainly written, and been quite proud of the result of, a large sorting program that used Quicksort arrays over and over, and finally mergesort, to handle the amount of data that could never be sorted in memory.

But I've also learned that sometimes a very much smaller, (and much easier to maintain) bat file, could do the same thing, in far less time.

I don't want to talk you out of your programming effort - I believe it's a noble one and you'll undoubtedly already have learned a lot from working on it.

This is just an alternative, and much simpler way, imo.

Adak
Adak is offline   Reply With Quote