f:setvbuf

Sets the buffering mode for an output file

Prototype

f:setvbuf (mode, size)

Description

Sets the buffering mode for an output file. There are three available modes, which are supplied as strings: For the last two cases, size specifies the size of the buffer, in bytes. The default is an appropriate size.

Lua functions

Topics