Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!wuarchive!zaphod.mps.ohio-state.edu!lavaca.uh.edu!jetson.uh.edu!chem4m From: chem4m@jetson.uh.edu Newsgroups: comp.lang.pascal Subject: more fun things to do with files Message-ID: <6789.26caaab3@jetson.uh.edu> Date: 16 Aug 90 14:16:19 CDT Organization: University of Houston Lines: 15 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. Any help in this matter would be greatly appreciated Avijit Ghosh chem4m.jetson.uh.edu by the way reset(f,1) { set the byte size to one } blockread(f,c,sizeof(c),recordread); doesn't work either..