FLUSH Subroutine
LF Fortran 95

FLUSH Subroutine

Description

The FLUSH subroutine causes data stored in an output buffer to be written to its i/o unit, and clears the buffer.


Syntax

FLUSH (iunit)

Arguments

iunit is an INTENT(IN) scalar of type INTEGER. It is the unit number of the file whose buffer is to be written.

Remarks

Execution of the FLUSH subroutine does not flush the input buffer.

Example

call flush(11) ! empty buffer for unit 11