C, string, array, big file

Jim Li jimmy at blake.acs.washington.edu
Thu Nov 16 18:09:49 AEST 1989


I need to manipulate (searching, sorting, ...) some big files (>500K)
What is the best way to store the contents of the files?
Suppose I have a file that is 5000 lines long, the simplest decl. would be

char array[5000][80]; 

Any better ideas?           
(Speed is a key issue.)

Thanks in advance.
Jim.
.



More information about the Comp.lang.c mailing list