Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

INQUIRE and full path

michael_m2
Novice
914 Views

Hello:

I see that when I use INQUIRE to get the name of a file from its unit number, it returns the full path name of the file, even if I only opened the file using its relative path name.

Is that standard Fortran behavior that can be relied upon, or is that just the way Intel implements the function? (I realize that I could use GETFULLPATHQQ if I wanted to, but I'm just curiouus about the way INQUIRE works.)

Thanks.
Michael

2 Replies
Steven_L_Intel1
Employee
914 Views
The standard says that the string returned can be used to open the file. I would not necessarily rely on it being a full path, but that's what our implementation does.
michael_m2
Novice
914 Views

OK. Thanks for your quick reply!

Michael

0 Kudos
Reply