[comp.lang.c] Storing a text file in memory

6600bori@ucsbuxa.ucsb.edu (Boris Burtin) (02/26/91)

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@ucsbuxa.ucsb.edu)