9.156 IS_IOSTAT_END — Test for end-of-file value
- Description:
 - 
IS_IOSTAT_ENDtests whether an variable has the value of the I/O status “end of file”. The function is equivalent to comparing the variable with theIOSTAT_ENDparameter of the intrinsic moduleISO_FORTRAN_ENV. - Standard:
 - 
Fortran 2003 and later
 - Class:
 - 
Elemental function
 - Syntax:
 - 
RESULT = IS_IOSTAT_END(I) - Arguments:
 - 
I Shall be of the type INTEGER. - Return value:
 - 
Returns a
LOGICALof the default kind, which.TRUE.if I has the value which indicates an end of file condition forIOSTAT=specifiers, and is.FALSE.otherwise. - Example:
 - 
PROGRAM iostat IMPLICIT NONE INTEGER :: stat, i OPEN(88, FILE='test.dat') READ(88, *, IOSTAT=stat) i IF(IS_IOSTAT_END(stat)) STOP 'END OF FILE' END PROGRAM
 
    © Free Software Foundation
Licensed under the GNU Free Documentation License, Version 1.3.
    https://gcc.gnu.org/onlinedocs/gcc-9.3.0/gfortran/IS_005fIOSTAT_005fEND.html