Quote:
|
Originally Posted by gavinwahl
I need a simple program to compare two huge (1gigabyte/20 million lines) text files as quickly as possible, without reading the whole file into memory. Does anyone have any ideas?
|
Hi, To process anything it must be loaded into memory. There are two ways, read the entire files in or read them one line at the time. Actually you can not load one character or one line in. You must read an entire sector into a buffer and work on the part you are interested in. So, don't spend much time looking for a way to compare without loading to memory. You should find plenty of compare programs on the Net. They wont be fast on files that big. A fairly good compare program used to come with DOS. Luck, Jim