View previous topic :: View next topic |
Author |
Message |
Anonymous Guest
|
Posted: Wed Mar 15, 2006 6:59 am Post subject: Unformatted Files Compatibility |
|
|
I wrote a binary file with the F95 compiler.
I want to read this file by a program compiled by a compaq Fortran compiler.
I used all the options of the "Unformatted file conversions" provided by this compiler:
None
Big / Little Endian
Cray
IBM
Native
VAXG
VAXD
But I always failed.
What can I do ?
Bernd |
|
Back to top |
|
|
bernie
Joined: 11 Mar 2006 Posts: 3
|
Posted: Wed Mar 15, 2006 8:52 am Post subject: Unformatted Files Compatibility |
|
|
I found the answer by myself reading the compaq fortran manual.
The reason was the different usage of the RECL specifier.
Compaq Manual:
The RECL specifier indicates the length of each record in a file
If the file is connected for formatted data transfer, the value must be expressed in bytes (characters). Otherwise, the value is expressed in 4-byte units (longwords).
Salford always uses bytes to specify the length.
Bernd |
|
Back to top |
|
|
|