🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: src.ada
Article #3

reading an unformatted fortran file

#3
From: Matt Englehart
Date: Fri, 16 Oct 1992 02:06
14 lines
1251 bytes
I have a fortran file that was written out using "unformatted" format,thus
are stored in a binary representation.  The data is stored in the file in a
deterministic way, but consists of three types: integer, short float (fortran
real*4), and float (fortran real*8).  My question is, how do I read the
values of this file?  All I know is that I can instantiate SEQUENTIAL_IO
for a particular data type, but what if the items stored in the file have
mixed representations?

Thanks, Matt

Matthew J. Englehart                      Voice: (612)-951-7635
Honeywell Systems and Research Center     FAX:   (612)-951-7438
3660 Technology Dr.   MS:MN65-2500        Inet: englehar@src.honeywell.com
Minneapolis, MN 55418
Technical Details
Message-ID: <9210160206.AA26763@akela.src.honeywell.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!caen!uwm.edu!src.honeywell.com!mail-enters-news

Show Full Headers
Complete Article Headers
Newsgroups: src.ada,comp.lang.ada
Path: arc1-ca.pugleaf.net!sparky!uunet!caen!uwm.edu!src.honeywell.com!mail-enters-news
From: englehar@src.honeywell.com (Matt Englehart)
Subject: reading an unformatted fortran file
To: src.ada, comp.lang.ada
Message-ID: <9210160206.AA26763@akela.src.honeywell.com>
Posted-Date: Thu, 15 Oct 92 21: 06:04 CDT
Sender: jkimball@src.honeywell.com (John Kimball)
Organization: Honeywell Systems & Research Center
Date: Fri, 16 Oct 1992 02:06:04 GMT
Received-Date: Thu, 15 Oct 92 21: 05:43 CDT
Lines: 16