- 积分
- 59
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2015-4-29
- 最后登录
- 1970-1-1
|
发表于 2015-4-30 21:53:52
|
显示全部楼层
请问楼主,我现在在做毕业论文,搞得焦头烂额。程序运行不了,不知道怎么改,望楼主不吝赐教!!!
我把楼主open文件语句改了一下,变成了open(21,file='F:\890\890\test.txt',status='old'),
F:\890\890\是我存储test的路径。
然后下面对应的读取数据和输出数据为:
open(21,file='F:\890\890\test.txt',STATUS='old')
do i=1,m
read(21,*) (x(i,j),j=1,n)
enddo
close(21)
call eof(m,n,mnl,x,ks,er,egvt,ecof)
open(22,file='F:\890\890\er.txt',STATUS='old')
do i=1,mnl
write(22,"(4f30.8)") (er(i,j),j=1,4)
enddo
close(22)
open(23,file='F:\890\890\ecof.txt',STATUS='old')
do j=1,n
write(23,"(<mnl>f20.6)") (ecof(i,j),i=1,mnl)
enddo
close(23)
open(24,file='F:\890\890\egvt.txt',STATUS='old')
do i=1,m
write(24,"(<mnl>f20.6)") (egvt(i,j),j=1,mnl)
enddo
close(24)
执行时出现错误,显示forrt1:severe<59>:list-directed I/O syntax error,unit 21,file F:\890\890\test.txt
Image PC Routine Line Source
890.exe 004111C9 Unknown Unknown Unkown
Press any key to continue
感觉打开文件读取数据就出问题了,但是不知道怎么改,因为以前没怎么接触过,现在做毕业论文又比较着急,所以求指教!!!谢谢!!!1
|
|