Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!linus!philabs!cmcl2!seismo!harvard!godot!ima!inmet!stern From: stern@inmet.UUCP Newsgroups: net.graphics Subject: Re: C help needed Message-ID: <1795@inmet.UUCP> Date: Fri, 9-Nov-84 01:13:00 EST Article-I.D.: inmet.1795 Posted: Fri Nov 9 01:13:00 1984 Date-Received: Sat, 10-Nov-84 06:10:37 EST Lines: 14 Nf-ID: #R:uiucdcsb:-830000900:inmet:11100005:000:683 Nf-From: inmet!stern Nov 7 14:33:00 1984 I would say your best bet is to use fread(3) and fwrite(3) to make an non-ascii file of data structures. This will help you save the data part (i.e. the non-pointer data) somewhere neatly. However, you have to remember that if you stow some data in a file, and then load it up again in another program, it may reside in a different place in memory, and therefore your pointers will be different. Maybe a better idea is to put all of the data structures into an array, replacing the pointers with integer array indices. It is easy enough then to rebuild your structures after reading the arrays out of a file using fread. --Hal Stern {ihnp4, harpo, esquire, ima}!inmet!stern