Using flush() before close()

I guess in many cases it’s because they don’t know close() also invokes flush(), so they want to be safe.

Anyway, using a buffered stream should make manual flushing almost redundant.

Leave a Comment