home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / lang / fortran / 4720 < prev    next >
Encoding:
Internet Message Format  |  1992-12-15  |  821 b 

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!darwin.sura.net!jvnc.net!netnews.upenn.edu!dsinc!ub!acsu.buffalo.edu!ubvmsb.cc.buffalo.edu!acscmaw
  2. From: acscmaw@ubvmsb.cc.buffalo.edu (MARK WIECZOREK)
  3. Newsgroups: comp.lang.fortran
  4. Subject: swapping bytes on a two byte integer
  5. Message-ID: <BzB6rI.LI7@acsu.buffalo.edu>
  6. Date: 15 Dec 92 16:21:00 GMT
  7. Sender: nntp@acsu.buffalo.edu
  8. Organization: University at Buffalo
  9. Lines: 8
  10. News-Software: VAX/VMS VNEWS 1.41
  11. Nntp-Posting-Host: ubvmsb.cc.buffalo.edu
  12.  
  13.  
  14. I have a very simple problem. I have a binary data file composed of two byte
  15. integers. After reading the data I would like to change the order of the 
  16. bytes and write the result to a file. I've looked through the vax fortran
  17. manuals and couldn't find a way to do this. Any help would be greatly
  18. appreciated. 
  19.  
  20. Mark Wieczorek
  21.