Flush the write buffers of the stream if applicable. This does nothing for read-only and non-blocking streams.
flush()