文件位置的含义=“../"//文件名 [英] Meaning of filelocation = "../"//filename
本文介绍了文件位置的含义=“../"//文件名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
filelocation = "../"//filename
PRINT *, "Attempting to open ", TRIM(filename)
OPEN(fh1, FILE = filelocation, STATUS='old',IOSTAT = io)
谁能告诉我第一行的../"//是什么意思?
Can anyone tell me please what is the meaning of "../"// in the first line?
推荐答案
字符串
../
是 Linux 的 当前工作目录的父目录.这在 Windows 机器上可能有效,也可能无效.两个字
is Linux for the parent directory of the current working directory. This may or may not work on a Windows machine. The two characters
//
表示用于字符串连接的 Fortran 运算符.所以
represent the Fortran operator for string concatenation. So
"../"//filename
将 filelocation
设置为引用程序认为正在执行的目录的父目录中名为 filename
的文件.
sets filelocation
to refer to a file named filename
in the parent directory of the directory the program thinks it is executing in.
这篇关于文件位置的含义=“../"//文件名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文