Loading...
Loading...
Loading...
This function opens a file, in the mode specified in the string mode
. It returns a new file handle, or, in case of errors, nil plus an error message.
The mode
string can be any of the following:
"r
": read mode (the default)
"w
": write mode
"a
": append mode
Closes file
. Note that files are automatically closed when their handles are garbage collected, but that takes an unpredictable amount of time to happen.
Lua Standard Libraries | Included |
---|---|
package
-
coroutine
-
table
since OpenTX 2.3.8
(color LCD radios only)
since OpenTX 2.1.0 (with limitations)
os
-
string
since OpenTX 2.1.7
bit32
since OpenTX 2.1.0
math
since OpenTX 2.0.0
debug
-