Quantcast
Channel: Intel® Fortran Composer XE
Viewing all articles
Browse latest Browse all 1424

File/Directory managment question

$
0
0

1) I'm well aware of the intrinsic inquire function which applies to a statement like:

inquire (file = "FileName.inp", exist=result)

But suppose I want to inquire about the existence of a Directory.  Is there a counterpart statement for this?  In some checking I've done, I haven't been able to find such.

2) Suppose we can find a way to determine the existence of some Directory.  If for a statement like the above result = .true., then suppose we want to purge (delete) it from an earlier run (so it can be created anew).  Is there a simple command to Remove this Directory?

In preliminary checking, I'm not sure I have seen a reliable command for this, especially one that isn't very dependent on the library one is using.  FWIW, in my case, I'm using DFlib (not iFort).

In DOS, I could always do this very easily.


Viewing all articles
Browse latest Browse all 1424

Trending Articles