flush()

Flush the write buffers of the stream if applicable. This does nothing for read-only streams.