Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
filelocation = "../"//filename PRINT *, "Attempting to open ", TRIM(filename) OPEN(fh1, FILE = filelocation, STATUS='old',IOSTAT = io)
谁能告诉我第一行的“../”//是什么意思?
字符串
../
是 Linux 为当前工作目录的父目录。这在 Windows 机器上可能有效,也可能无效。两个字符
//
表示用于字符串连接的 Fortran 运算符。所以
"../"//filename
设置filelocation为引用filename在程序认为正在执行的目录的父目录中命名的文件。
filelocation
filename