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.
mode
The mode string can be any of the following:
"r": read mode (the default)
r
"w": write mode
w
"a": append mode
a
Last updated 3 years ago
Was this helpful?