Silverfrost Forums

Welcome to our forums

Little endian to big endian

19 Jan 2006 12:11 #518

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

19 Jan 2006 12:42 #519

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.

Please login to reply.