home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / sgi / 12338 < prev    next >
Encoding:
Internet Message Format  |  1992-08-13  |  1.2 KB

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