Intel® Fortran Compiler Classic and Intel® Fortran Compiler Developer Guide and Reference

ID 767251
Date 3/31/2023
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

INQUIRE: SIZE Specifier

The SIZE specifier asks the size of a file in file storage units. It takes the following form:

SIZE = sz

sz

Is a scalar integer variable.

The sz variable is assigned the size of the file in file storage units. If the file size cannot be determined, the variable is assigned the value -1.

For a file that is connected for stream access, the file size is the number of the highest-numbered file storage unit in the file.

For a file that is connected for sequential or direct access, the file size may be different from the number of storage units implied by the data in the records; the exact relationship is processor-dependent.

If there are pending asynchronous data transfer operations for the specified file, the value assigned to the SIZE= specifier is computed as if the pending data transfers have already completed.