home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!news.acns.nwu.edu!network.ucsd.edu!sdcc12!xm9
- From: xm9@sdcc12.ucsd.edu (richard g. adair)
- Newsgroups: comp.sys.sgi
- Subject: Re: Help for my binary read !!!
- Summary: VMS strikes again!
- Keywords: binary file read
- Message-ID: <36799@sdcc12.ucsd.edu>
- Date: 13 Aug 92 14:39:48 GMT
- References: <Aug.12.15.40.21.1992.3094@paul.rutgers.edu>
- Sender: news@sdcc12.ucsd.edu
- Distribution: usa
- Organization: Arete Associates, San Diego
- Lines: 18
- Nntp-Posting-Host: sdcc12.ucsd.edu
-
- In article <Aug.12.15.40.21.1992.3094@paul.rutgers.edu> slu@paul.rutgers.edu (shen lu) writes:
- > I have the following c-code which reads in a binary file
- > generated by Fortran program write: write(10) n1,n2,n3,n4
- > (Here, n1=40,n2=60, n3=17, n4=1)
- > I tested both code on SGI IRIS and HP 835 machines, they give the
- > same unmatching results.
- > Could somebody out there give me some hint ?
-
- Ahh, VMS compatibility! FORTRAN under VMS is a record oriented
- beastie. VMS has the idea that storage is kept in finite chunks
- with a known length (like a punch card :-). The length of your
- "record" is 4x 4 bytes, or 16...
-
- Tony Burzio
- Arete Associates
- San Diego, CA
-
-
-