Re: Read/write binary files in Linux and Windows
- From: "Les" <l.neilson@xxxxxxxxxxxxxxxxxxx>
- Date: Wed, 24 Oct 2007 09:30:05 +0100
"Luis Samaniego" <luis.samaniego@xxxxxx> wrote in message
news:5o8bubFll15fU1@xxxxxxxxxxxxxxxx
Dear Fortran experts,<snip>
I am using the following code to read and write binary files in both a
Linux cluster and in Windows PC.
OS/COMPILERS
In Windows: CVF 6.6 (little Endian)
In Linux: PGI (Portland Group) and Sun compilers (little Endian)
open (unit=1, &
file='out.r4', &
form='unformatted', &
access='direct', &
recl=m*n*4)
I would guess that is your problem right there.
On the Linux compiler recl is measured in "bytes", on Windows it is in
"Words" (4 bytes)
Les
.
- Follow-Ups:
- Re: Read/write binary files in Linux and Windows
- From: Richard Maine
- Re: Read/write binary files in Linux and Windows
- References:
- Read/write binary files in Linux and Windows
- From: Luis Samaniego
- Read/write binary files in Linux and Windows
- Prev by Date: Read/write binary files in Linux and Windows
- Next by Date: Re: Read/write binary files in Linux and Windows
- Previous by thread: Read/write binary files in Linux and Windows
- Next by thread: Re: Read/write binary files in Linux and Windows
- Index(es):
Relevant Pages
|
|