查询文件夹是否存在
Fortran标准提供了inquire函数查询文件的状态,但并未提供查询文件夹是否存在的功能,部分编译器会额外提供某些扩展来实现。gfortran将文件夹同样视为文件,因此可通过inquire函数的file参数查询(经测试,linux和win均可):program test_gfortranimplicit nonelogical isExist!查询文件夹ab是否存在inquire(file='ab',exist=isExist)print*,isExistend program...