Intel® Fortran Compiler 18.0 Developer Guide and Reference

INQUIRE: NUMBER Specifier

The NUMBER specifier asks the number of the unit connected to a file. It takes the following form:

NUMBER = num

num

Is a scalar integer variable.

The num is assigned the number of the unit currently connected to the specified file. If there is no unit connected to the file, the value assigned is -1.