UNFORAMTTED option question
N.M. Maclaren
nmm1@cam.ac.uk
Fri Jan 29 19:47:00 GMT 2010
On Jan 29 2010, Muhammad Akbar wrote:
>
>I tried,
>
>open(21,file='filename',form='unformatted',access='stream')
>
>It compiles, but when I run the code, it says BAD ACCESS parameter in
>OPEN statement.
Well, it works for me. I suspect your version of gfortran is a bit old.
Update it and try again. This is the statement I use, for another purpose:
OPEN(69,FILE=filename1,ACTION='READ',ACCESS='STREAM',FORM='UNFORMATTED')
Regards,
Nick Maclaren.
More information about the Fortran
mailing list