Path: utzoo!utgpu!news-server.csri.toronto.edu!clyde.concordia.ca!uunet!mcsun!hp4nl!dutrun!winfave From: winfave@dutrun.UUCP (Alexander Verbraeck) Newsgroups: comp.lang.pascal Subject: Re: I/O with complex datastructures Keywords: I/O datastructures save Message-ID: <1863@dutrun.UUCP> Date: 16 Aug 90 11:19:41 GMT References: <140232@sun.Eng.Sun.COM> Reply-To: winfave@dutrun.UUCP (A.Verbraeck) Organization: Delft University of Technology, The Netherlands Lines: 16 The solution has already been pointed out: create a file of the type of your datastructure, open it, write your data, and close it. Very easy indeed. You asked about disadvantages: yes, there is at least one: if you use pointers in your datastructure, you can't retrieve them, because you never know whether your data will be loaded into the same memory addresses. If you're not using pointers, the above method works just fine. ---------------------------------------------------------------------- Alexander Verbraeck e-mail: winfave@dutrun.tudelft.nl Delft University of Technology winfave@hdetud1.bitnet Department of Information Systems winfave@dutrun.uucp PO Box 356, 2600 AJ The Netherlands dutrun!winfave@hp4nl.uucp ----------------------------------------------------------------------