Storing a text file in memory
Boris Burtin
6600bori at ucsbuxa.ucsb.edu
Tue Feb 26 08:31:57 AEST 1991
I need to read a variable-length text file (with variable-length lines)
and store it in memory for later use. I am currently using a linked list
to do this:
struct list {
char *string;
struct list *next;
}
It works fine, but I was just curious if there are any other, easier, more
sensible ways of doing this. Thanks...
- Boris Burtin
(6600bori at ucsbuxa.ucsb.edu)
More information about the Comp.lang.c
mailing list