[comp.lang.fortran] Reading Unformatted Fortran FIles in C

jh34607@suntc.UUCP (john howell) (07/18/89)

A while back someone had a post requesting how to read fortran
unformatted files with a C program.  I sent them a C function to do this
on a SGI 3000, but I left out a couple of important routines and I have
lost the address.  Are you still interested?

I have done some more investigation also.

On the SGI 3000, fortran records are delimited by a character, then if
this character exists in the real data, special handling occurs.

On the SGI 4D, a record starts with a 4 byte integer that tells how many
bytes are in the record.  The record is then followed with a 4 byte integer
that tells how many bytes were in the record.  Very much like a
hollerith format with an extra error check.

========================================================================
John Howell			uucp:		uunet!suntc!jrh
Deere & Company			MCImail:	John R. Howell, 360-4047
Technical Center		CompuServe:	john howell [76666,2505]
				FAX:		(309)765-3807
				Voice:		(309)765-3784
========================================================================