This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Binary file question


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]