Fortran filelocation=";的含义/&引用//文件名
有人能告诉我第一行“./”是什么意思吗?字符串Fortran filelocation=";的含义/&引用//文件名,fortran,fortran90,Fortran,Fortran90,有人能告诉我第一行“./”是什么意思吗?字符串 filelocation = "../"//filename PRINT *, "Attempting to open ", TRIM(filename) OPEN(fh1, FILE = filelocation, STATUS='old',IOSTAT = io) 当前工作目录的父目录为Linux。这可能在Windows计算机上工作,也可能不工作。两个人物 ../ 表示用于字符串连接的Fortran运算符。所以 //
filelocation = "../"//filename
PRINT *, "Attempting to open ", TRIM(filename)
OPEN(fh1, FILE = filelocation, STATUS='old',IOSTAT = io)
当前工作目录的父目录为Linux。这可能在Windows计算机上工作,也可能不工作。两个人物
../
表示用于字符串连接的Fortran运算符。所以
//
设置filelocation
以引用程序认为正在执行的目录的父目录中名为filename
的文件。字符串
filelocation = "../"//filename
PRINT *, "Attempting to open ", TRIM(filename)
OPEN(fh1, FILE = filelocation, STATUS='old',IOSTAT = io)
当前工作目录的父目录为Linux。这可能在Windows计算机上工作,也可能不工作。两个人物
../
表示用于字符串连接的Fortran运算符。所以
//
设置filelocation
以引用程序认为正在执行的目录的父目录中名为filename
的文件