Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!elroy.jpl.nasa.gov!swrinde!ucsd!hub.ucsb.edu!ucsbuxa!6600bori From: 6600bori@ucsbuxa.ucsb.edu (Boris Burtin) Newsgroups: comp.lang.c Subject: Storing a text file in memory Message-ID: <9414@hub.ucsb.edu> Date: 25 Feb 91 21:31:57 GMT Sender: news@hub.ucsb.edu Distribution: comp Lines: 14 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)