Opens a file for reading or writing.
The path of the file to open.
The way in which the file is opened.
'read' - the file can only be read.
'write' - the file will be created (an existing file with the same name will be erased) and the file can only be written to.
'append' - the file will be created if it does not exist and the file can only be written to. Any text written to the file will be added to the end.
LocalFileHandle
Opens a file for reading or writing.
The path of the file to open.
The way in which the file is opened.
'read' - the file can only be read.
'write' - the file will be created (an existing file with the same name will be erased) and the file can only be written to.
'append' - the file will be created if it does not exist and the file can only be written to. Any text written to the file will be added to the end.
LocalFileHandle
Opens a file for reading or writing.
The path of the file to open.
The way in which the file is opened.
'read' - the file can only be read.
'write' - the file will be created (an existing file with the same name will be erased) and the file can only be written to.
'append' - the file will be created if it does not exist and the file can only be written to. Any text written to the file will be added to the end.
LocalFileHandle
Copies a file.