The FLUSH subroutine causes data stored in an output buffer to be written to its i/o unit, and clears the buffer.
iunit is an INTENT(IN) scalar of type INTEGER. It is the unit number of the file whose buffer is to be written.
Execution of the FLUSH subroutine does not flush the input buffer.
Examplecall flush(11) ! empty buffer for unit 11