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.
我似乎记得 gfortran 中的 open 有可能将 iostat 的结果作为字符串返回,但我忘记了返回字符串的选项名称。
有人记得要使用的参数吗?
从ftp://ftp.nag.co.uk/sc22wg5/n1551-n1600/n1579.pdf:
IOMSG= 说明符:任何输入/输出语句都允许有 IOMSG= 说明符。这标识了一个默认字符类型的标量变量,如果在语句执行期间发生错误、文件结束或记录结束条件,处理器会将消息放入其中。如果没有出现这种情况,则变量的值不会改变。