From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: * X-Spam-Status: No, score=1.1 required=5.0 tests=BAYES_20,INVALID_DATE, MSGID_SHORT autolearn=no autolearn_force=no version=3.4.4 Path: utzoo!attcan!uunet!snorkelwacker!apple!bbn!bbn.com!koolish From: koolish@bbn.com (Dick Koolish) Newsgroups: comp.lang.ada Subject: File I/O Question Message-ID: <54727@bbn.COM> Date: 11 Apr 90 14:03:57 GMT Sender: news@bbn.COM List-Id: I need to read some existing data files from an Ada program. The files have a header block followed by data records. Different files have different data record sizes. The size and number of data records is specified in the header block. I also need to be able to read the data starting at any record and when I get to the physical end of file to wrap around to the start of the data again. The two questions are how to read two different kinds of records out of a file and how to do this if you don't know the size of one of the records until you open the file and read the header.