Sets the buffering mode for an output file. There are three available modes:

For the last two cases, sizes specifies the size of the buffer, in bytes. The default is an appropriate size.