LuaNET, the lua 5.1 api documentation!

Lua-Api

Input/Output

[LUA 5.1] file:setvbuf

function file:setvbuf ( mode, size )
Sets the buffering mode for an output file.
There are three available modes:

  • "no":
    no buffering; the result of any output operation appears immediately.
  • "full":
    full buffering; output operation is performed only when the buffer is full (or when you explicitly flush the file (see io.flush).
  • "line":
    line buffering; output is buffered until a newline is output or there is any input from some special files (such as a terminal device).

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

Comments

© 2007 DracoBlue :: Valid XHTML, CSS, RSS Powered by SMF 1.1.5 | SMF © 2006-2008, Simple Machines LLC | SourceNet © 2007, DracoBlue :: Page created in 0.406 seconds with 20 queries.