Path: utzoo!utgpu!news-server.csri.toronto.edu!clyde.concordia.ca!uunet!munnari.oz.au!uluru5!danielce From: danielce@uluru5.ecr.mu.oz (Daniel Ake CAROSONE) Newsgroups: comp.lang.pascal Subject: Re: more fun things to do with files Message-ID: <5102@munnari.oz.au> Date: 20 Aug 90 00:29:19 GMT References: <6789.26caaab3@jetson.uh.edu> Sender: news@cs.mu.oz.au Lines: 20 In article <6789.26caaab3@jetson.uh.edu>, chem4m@jetson.uh.edu writes: > If i have TWO datastructures w/ NO pointers, and I know that i am only going > to save one of each and accordingly will read only one of each, How would > I save these both into ONE file. > To save them into two files would be an easy matter... > TP has a type file; which is an untyped file, but the reset/rewrite command > asks for the byte size of the data structure and as I can call reset/rewrite > only once (since it resets to the beginning of the data file) the untyped file; > format defeats it's own purpose for me. In some of the sample code that comes with 5.5, and on the OOPs Manual Update that also comes with it, there is a definition for a new type stream. Objects are saved on streams. (it was introduced as a way out of the problem that you can't say "FILE of ") Well worth a look, all the code is given, and may give a few ideas. Daniel Carosone danielce@ecr.mu.oz.au