![]() | |
#31
| |||
| |||
|
|
Citizen Bob wrote: I have a disk file which contains 370,260 records of average length 60 ASCII text characters. I need to sort them on the first 9 characters, which are set off from the rest by a space. Once sorted the first record looks like 100100100 08:35-08:39 4 0 0 1 -115 -1 75 -100 dd17.txt and the last one looks like 500900900 12:41-13:25 44 1 885 0 0 1 925 -200 dd21.txt What's wrong with importing it into Excel? |
#32
| |||
| |||
|
|
I have a disk file which contains 370,260 records of average length 60 ASCII text characters. I need to sort them on the first 9 characters, which are set off from the rest by a space. Once sorted the first record looks like 100100100 08:35-08:39 4 0 0 1 -115 -1 75 -100 dd17.txt and the last one looks like 500900900 12:41-13:25 44 1 885 0 0 1 925 -200 dd21.txt There is not enough memory in my Win2K/SP4 system to implement the traditional memory-based sorting algorithms, so I need to use a method that is disk-file based. I have plenty of disk space. I imagine that this method would open the input disk file and begin reading records one at a time and performing some kind of sort algorithm placing the result in a temporary output file. Once the original file has been swept, the process starts over and runs again and again for the required number of iterations until the entire list is sorted in ascending order. I will implement this method in standard DOS-based C (Microsoft Optimizing C Compiler "cl") using the Win2K DVM. I suggest you use the Microsoft supplied sort. You can obtain |
#33
| |||
| |||
|
|
I suggest you use the Microsoft supplied sort. You can obtain instructions by typing HELP SORT at the command prompt. |
#34
| |||
| |||
|
|
What's wrong with importing it into Excel? What is the maximum number of rows in an XL sheet? Last time I checked it was way less than 370,260. |
|
/Lennart |
#35
| |||
| |||
|
| David Segall wrote: I suggest you use the Microsoft supplied sort. You can obtain instructions by typing HELP SORT at the command prompt. Or try downloading the bash shell at www.cygwin.com and using the unix sort on windows. Shame on you! That is not supplied by Microsoft. Everything you need |
![]() |
| Thread Tools | |
| Display Modes | |
| |