- 积分
- 347
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2012-10-22
- 最后登录
- 1970-1-1
|
楼主 |
发表于 2012-11-12 15:47:25
|
显示全部楼层
open(unit=inputfileid,file=inputfile,status="old")
do i=1,100
read(inputfileid,"(A200)",iostat=error)kaitou
if(kaitou(61:73)=="END OF HEADER")then
open(unit=inputfileid,file=inputfile,status="old")
open(unit=outputfileid,file=outputfile,status="replace")
do while(.true.)
read(inputfileid,"(A200)",iostat=error)buffer
if(error/=0)exit
write(outputfileid,"(A)")trim(buffer)
end do
close(inputfileid)
close(outputfileid)
!end do
else
write(*,*)"没有匹配"
end if
end do
end do
stop
end program |
|