楚香饭 发表于 2015-3-8 17:24
你这到底是读 78 行,还是 78 列?
Program www_fcode_cn
Implicit None
integer :: i
character(len=2) :: time(4)
character(len=10) :: date1(4) , date(4) , vel(4) , angl(4)
Open(12,File='t.txt')
Do i = 1 , 4
read(12,'(T7,A2)',advance='no') time(i)
read( 12 , * ) date1(i),date(i),vel(i),angl(i)
write(*,*) time(i) , date1(i),date(i),vel(i),angl(i)
End Do
End Program www_fcode_cn
楚香饭 发表于 2015-3-8 22:14
[mw_shl_code=fortran,true]Program www_fcode_cn
Implicit None
integer :: i
欢迎光临 Fortran Coder (http://bbs.fcode.cn/) | Powered by Discuz! X3.2 |