早教吧作业答案频道 -->其他-->
求fortranError:Notavalidvalueforthechar-exprinthisconnect-spe怎么解决?for(13):Error:Notavalidvalueforthechar-exprinthisconnect-spec.['readonly']13行是这句open(unit=1,file='d:\cmap\cmapmonv110179.txt',access='sequenti
题目详情
求fortran Error:Not a valid value for the char-expr in this connect-spe怎么解决?
for(13) :Error:Not a valid value for the char-expr in this connect-spec.['readonly']
13行是这句 open (unit=1,file='d:\cmap\cmap_mon_v1101_79.txt',
access='sequential',status='readonly',form='formatted')
Error:Constants and expressions are invalid in read-only I/O lists.[RLONRAIN1]
for(13) :Error:Not a valid value for the char-expr in this connect-spec.['readonly']
13行是这句 open (unit=1,file='d:\cmap\cmap_mon_v1101_79.txt',
access='sequential',status='readonly',form='formatted')
Error:Constants and expressions are invalid in read-only I/O lists.[RLONRAIN1]
▼优质解答
答案和解析
status
Character*(*).Describes the nature of the file to be opened.Can be one of the following:
●'OLD' The file must already exist.If the file exists,it is opened.If it does not exist,an I/O error occurs.
●'NEW' The file must not already exist.If the file does not exist,it is created.If it exists,an I/O error occurs.
●'SCRATCH' If you omit the file parameter when opening a file,the value of status defaults to 'SCRATCH'.Scratch files are temporary.They are deleted when the unit is closed or when the program terminates.
●'REPLACE' The file opened replaces one of the same name.If there is no existing file of the same name,a new file is created.
●'UNKNOWN' (Default) The run-time system first attempts to open the file with status equal to 'OLD',and then with status equal to 'NEW'.If the file exists,it is opened; if it does not exist,it is created.
●Using STATUS= 'UNKNOWN' avoids any run-time errors associated with opening an existing file using STATUS='NEW' or opening a nonexistent file using STATUS='OLD'.
\x05Values of status affect only disk files,and are ignored for devices such as the keyboard or the printer.
没有发现'readonly'这个选项.
Character*(*).Describes the nature of the file to be opened.Can be one of the following:
●'OLD' The file must already exist.If the file exists,it is opened.If it does not exist,an I/O error occurs.
●'NEW' The file must not already exist.If the file does not exist,it is created.If it exists,an I/O error occurs.
●'SCRATCH' If you omit the file parameter when opening a file,the value of status defaults to 'SCRATCH'.Scratch files are temporary.They are deleted when the unit is closed or when the program terminates.
●'REPLACE' The file opened replaces one of the same name.If there is no existing file of the same name,a new file is created.
●'UNKNOWN' (Default) The run-time system first attempts to open the file with status equal to 'OLD',and then with status equal to 'NEW'.If the file exists,it is opened; if it does not exist,it is created.
●Using STATUS= 'UNKNOWN' avoids any run-time errors associated with opening an existing file using STATUS='NEW' or opening a nonexistent file using STATUS='OLD'.
\x05Values of status affect only disk files,and are ignored for devices such as the keyboard or the printer.
没有发现'readonly'这个选项.
看了 求fortranError:...的网友还看了以下:
下列关于单项式-3/7πx5y2的说法中,正确的是()A.系数是,次数是8B.系数是,次数是7C. 2020-05-20 …
如图是用如图是用若干花盆摆成的三角形图案,每条边为N个花盆(N>1)总数为s盆N=2,S=3N=3 2020-06-19 …
Fe(OH)3胶体与FeCl3溶液共同的性质是()A.两者都有丁达尔效应B.Fe(OH)3胶体是红 2020-07-05 …
把下面的式子的两边弄成相等的1.FeCl3(aq)+KOH(aq)-->Fe(OH)3(s)+KC 2020-07-09 …
1,求3阶矩阵A=(113,151,311)的特征值和特征向量2,求RANKA=(12134,34 2020-07-19 …
直线l过点P(2,3)和x轴,y轴正方向分别相交于A、B两点,求直线l在两坐线l过点P(2,3)和 2020-07-31 …
直接写出得数.20-1又8分之3=6分之7x9分之4=4分之1-5分之1=4又4分之1X99+4.2 2020-10-31 …
1、把下面每组分通分.12分之7和15分之416分之3和12分之72、比较下例每组中两个分数的大小. 2020-11-28 …
解比例。5:x=3:9x分之54=分之436:18=x:5、41、5分之6=10分之x1解比例。5: 2020-11-28 …
有理数b满足︱b︱<3,并且有理数a使得a<b恒成立,则a得取值范围是[]A.小于或等于3的有理数B 2021-02-04 …