{{newin|[[0.9.0]]|090|type=function}}
Gets the buffer mode of a file.
== Function ==
=== Synopsis ===
<source lang="lua">
mode, size = File:getBuffer( )
</source>
=== Arguments ===
None.
=== Returns ===
{{param|BufferMode|mode|The current buffer mode of the file.}}
{{param|number|size|The maximum size in bytes of the file's buffer.}}
== See Also ==
* [[parent::File]]
* [[(File):setBuffer|File:setBuffer]]
* [[(File):write|File:write]]
[[Category:Functions]]
{{#set:Description=Gets the buffer mode of a file.}}
== Other Languages ==
{{i18n|(File):getBuffer}}