Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!think.com!spool.mu.edu!uunet!convex!gstiehl@convex.com From: gstiehl@convex.convex.COM (Greg Stiehl) Newsgroups: comp.sys.super Subject: Re: CRAY-YMP Fortran-to-C question Keywords: Fortran, C, CRAY, I/O Message-ID: <1991Jun06.133409.125@convex.com> Date: 6 Jun 91 13:34:09 GMT References: Sender: usenet@convex.com (news access account) Reply-To: gstiehl@convex.com Organization: CONVEX Computer Corp, Graphics Software Lines: 22 Nntp-Posting-Host: pixel.convex.com figuei@arakis.rutgers.edu (Francisco Figueirido) writes: > > I am trying to write a program (in C) which needs to read data from a > file which was created by a Fortran-written program. The file in > question consists of unformatted (i.e., binary) data. I know that the > CRAY (I am using the one at PSC) writes, as most Fortran compilers, > some sort of count (word count?) before the records, but cannot make > sense of everything I see in the octal dump. Can someone direct me to > where can I get more information about the format of unformatted (no > pun intended!) files? Thanks for the help. I would just write a small fortran function to read in the file, then link the fortran funtion into your C program. You will have to worry about differences in argument passing, but that seems much easier than decoding the fortran file format. Why re-invent the wheel? -greg. ---- Greg Stiehl (gstiehl@convex.com) Graphics Software Convex Computer Corp.