home *** CD-ROM | disk | FTP | other *** search
- 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
- From: acscmaw@ubvmsb.cc.buffalo.edu (MARK WIECZOREK)
- Newsgroups: comp.lang.fortran
- Subject: swapping bytes on a two byte integer
- Message-ID: <BzB6rI.LI7@acsu.buffalo.edu>
- Date: 15 Dec 92 16:21:00 GMT
- Sender: nntp@acsu.buffalo.edu
- Organization: University at Buffalo
- Lines: 8
- News-Software: VAX/VMS VNEWS 1.41
- Nntp-Posting-Host: ubvmsb.cc.buffalo.edu
-
-
- I have a very simple problem. I have a binary data file composed of two byte
- integers. After reading the data I would like to change the order of the
- bytes and write the result to a file. I've looked through the vax fortran
- manuals and couldn't find a way to do this. Any help would be greatly
- appreciated.
-
- Mark Wieczorek
-