View previous topic :: View next topic |
Author |
Message |
SShaw
Joined: 19 Jan 2006 Posts: 2
|
Posted: Thu Jan 19, 2006 1:11 pm Post subject: Little endian to big endian |
|
|
I need to read an unformatted file created by a third party application. The file is written with big_endian byte ordering. Can I read this file with the Salford FTN95 compiler ? I can't seem to find an appropriate switch.
-SS |
|
Back to top |
|
|
Andrew
Joined: 09 Sep 2004 Posts: 232 Location: Frankfurt, Germany
|
Posted: Thu Jan 19, 2006 1:42 pm Post subject: Little endian to big endian |
|
|
There is no switch to enable standard Fortran reads in big endian format however, it is possible to read any file in binary format using the Salford routine READF@. You can then perform operations as needed on the binary input, swapping to little endian if you need that. |
|
Back to top |
|
|
|