GerritGroot
Technical User
Hi,
I've got 2 doubts, maybe you can help me.
If I read a binary file in Fortran, either with ACCESS=DIRECT giving some record length or with FORM=BINARY
1. Is there a way to make a difference between long-endian and big-endian binaries? Or in other words, if I know that my file is big-endian, how do I make sure that Fortran will read it as a big endian.
2. If the file has a mixture of ASCII and Binary in the same file, how do I read that? Because I can only open the file in one way at the time.
Thanks,
Gerrit
I've got 2 doubts, maybe you can help me.
If I read a binary file in Fortran, either with ACCESS=DIRECT giving some record length or with FORM=BINARY
1. Is there a way to make a difference between long-endian and big-endian binaries? Or in other words, if I know that my file is big-endian, how do I make sure that Fortran will read it as a big endian.
2. If the file has a mixture of ASCII and Binary in the same file, how do I read that? Because I can only open the file in one way at the time.
Thanks,
Gerrit