skwattrinated
Technical User
Hi
I need to read binary files (record lenght = 4 bytes) but I use g95, so I can't use the "form='binary'" statement. I have to rewrite data in a matrix [ncols x nrows]. I tried with:
but it doesn't work.
Any suggestion?
Thanks all
I need to read binary files (record lenght = 4 bytes) but I use g95, so I can't use the "form='binary'" statement. I have to rewrite data in a matrix [ncols x nrows]. I tried with:
Code:
open(unit=10,file=file_in,recl=4)
do row=1,nrows
read(10) (dati(col,row),col=1,ncols)
write(*,*) (dati(col,row),col=1,ncols)
enddo
close(10)
but it doesn't work.
Any suggestion?
Thanks all