This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: Binary file question
- From: Steve Kargl <sgk at troutmask dot apl dot washington dot edu>
- To: Sriram Rallabhandi <sriramr at asdl dot gatech dot edu>
- Cc: fortran at gcc dot gnu dot org
- Date: Mon, 19 Sep 2005 10:29:29 -0700
- Subject: Re: Binary file question
- References: <432EED6F.3070307@asdl.gatech.edu>
On Mon, Sep 19, 2005 at 12:55:11PM -0400, Sriram Rallabhandi wrote:
> Hi all,
>
> I recently moved from Intel Fortran to gfortran compiler to use the
> freely available GNU compiler for my application.
> I have a problem reading and writing binary files.
>
> I used to do
>
> open(unit=unitnumber,file='file.dat',form='binary')
>
> on the Intel compiler to read or write binary file.
>
form='binary' is an extension to the Fortran standard
that gfortran does not (and my never) support.
You can use access='direct' to get compact files, or
you can use HDF for a portable solution.
--
Steve