{{newin|[[0.9.0]]|090|type=function}}
Gets the [[FileMode]] the file has been opened with.
== Function ==
=== Synopsis ===
<source lang="lua">
mode = File:getMode( )
</source>
=== Arguments ===
None.
=== Returns ===
{{param|FileMode|mode|The mode this file has been opened with.}}
== See Also ==
* [[parent::File]]
* [[FileMode]]
[[Category:Functions]]
{{#set:Description=Gets the [[FileMode]] the file has been opened with.}}
== Other Languages ==
{{i18n|(File):getMode}}