9.109. FLUSH
9.109 FLUSH — Flush I/O unit(s)
- Description:
-
Flushes Fortran unit(s) currently open for output. Without the optional argument, all units are flushed, otherwise just the unit specified.
- Standard:
-
GNU extension
- Class:
-
Subroutine
- Syntax:
-
CALL FLUSH(UNIT)
- Arguments:
-
UNIT (Optional) The type shall be INTEGER
. - Note:
-
Beginning with the Fortran 2003 standard, there is a
FLUSH
statement that should be preferred over theFLUSH
intrinsic.The
FLUSH
intrinsic and the Fortran 2003FLUSH
statement have identical effect: they flush the runtime library’s I/O b