これは簡単なはずです。私の read ステートメントに構文エラーがある理由がわかりません。7477 行の長さのファイルがあり、フォーマットが指定するように、これらの各変数を各行に対応させたいと考えています。ここで何か助けていただければ幸いです。ありがとう!
implicit none
integer :: spe, flen = 7477, i
real, dimension (7477):: wnum,s,A,abh
character :: other
integer :: lun = 11
write(*,*) 'Opening File!'
open(lun,file ='h2o_allbands',status = 'old',action ='read')
write(*,*) 'Success!'
17 format (1x,i2,3x,F9.6,1x,E9.3,1x,E9.3,F5.5,A120)
do i = 1, 7477
read(lun,17) spe(i),wnum(i),s(i),A(i),abh(i),other
write(*,*) wnum(i)
end do