program test
do i=1,3
open(11,file='1.txt',position='append')
write(11,*) i
close(11)
end do
end
fcode 发表于 2015-5-23 08:56
Open 里面加 POSITION = 'APPEND'
另外,如果是你整个程序运行一次。那么根本不需要关闭文件。把 Open 移 ...
欢迎光临 Fortran Coder (http://bbs.fcode.cn/) | Powered by Discuz! X3.2 |