external file modified date

external file modified date

There seems to be no simple way of obtaining the modified date of an external file in Fortran. Can anyone help with a few lines of Fortran code to get the information? Preferably, the code is portable across platforms and compilers (I know GFortran has an intrinsic function for this purpose).

2 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

Fortran, by itself, does not try to give you interfaces to file systems, and the information stored by the OS regarding a file is OS-dependent.

Intel Fortran provides the portability routine GETFILEINFOQQ in module IFPORT. Information available includes times of creation, last write and last access, depending upon the type of the file system in which the file resides.

Leave a Comment

Please sign in to add a comment. Not a member? Join today