首页 > 代码库 > [Fortran] Dump Data To File
[Fortran] Dump Data To File
1 PROGRAM MAIN 2 I = 1 3 J = 2 4 K = 11 5 Call DumpData(I,J,K) 6 END PROGRAM MAIN 7 8 SubRoutine DumpData(I,J,K) 9 OPEN( UNIT = 112 &10 ,FILE = ‘DumpErr.dat‘ & 11 ,FORM = ‘FORMATTED‘ &12 ,STATUS = ‘REPLACE‘ &13 ,ACCESS = ‘SEQUENTIAL‘ &14 )15 16 WRITE(112,*),"I = ",I17 WRITE(112,*),"J = ",J18 WRITE(112,*),"K = ",K+119 20 Close(112)21 RETURN22 End SubRoutine DumpData
大概就是文件操作~
[Fortran] Dump Data To File
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。