Intel® Fortran Compiler 16.0 User and Reference Guide

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.