Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!cs.utexas.edu!uunet!suntc!jh34607 From: jh34607@suntc.UUCP (john howell) Newsgroups: comp.lang.fortran Subject: Re: Reading Unformatted Fortran FIles in C Keywords: Fortran C Unformatted Read Message-ID: <104@suntc.UUCP> Date: 18 Jul 89 15:48:30 GMT Organization: Deere & Co. Technical Center, Moline,IL Lines: 22 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 ========================================================================