home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!gatech!usenet.ins.cwru.edu!agate!ucbvax!NOSVE.ELAN.AF.MIL!mvensky
- From: mvensky@NOSVE.ELAN.AF.MIL
- Newsgroups: comp.lang.ada
- Subject: (none)
- Message-ID: <921230152122490-MTAAFFTC*mvensky@nosve.elan.af.mil>
- Date: 30 Dec 92 23:25:49 GMT
- Sender: usenet@ucbvax.BERKELEY.EDU
- Organization: The Internet
- Lines: 18
-
- 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 record
- 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 Ada
- . 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
-