From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.5-pre1 (2020-06-20) on ip-172-31-74-118.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-1.9 required=3.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.5-pre1 Date: Wed, 16 Dec 1992 17:51:16 -0800 From: mvensky@nosve.elan.af.mil Subject: INFO-ADA_REQUEST Message-ID: <921216173559910-MTAAFFTC*mvensky@nosve.elan.af.mil> List-Id: I am having a tiny problem with Ada's SEQUENTIAL_IO. I am currently writing a utility to process sequential tapes written by FORTRAN 77 routines. The recor d formats are very well described. However they are heterogeneous, that is they consist of one hollerith character, followed by an integer, followed by several more hollerith characters and terminated by a vector of reals, aka floats in Ad a . How do I use Ada's strong typing to describe abstract data objects while reading in this file. If I read the data in using say a word-aligned vector of floats, I can do some unchecked conversion. This will work but does not seem to be very clean or elegant. Other possible declarations might cause the dreaded "DATA_ERROR" exception to be raised. These records were originally written as unformatted FORTRAN writes. They will read, fortunately perhaps, by Ada written for the same machine (a Cyber). I would truely appreciate any insight into how to solve this. Michael J. Vensky Edwards Air Force Base