View source
enum abstract FileMode(String)
package openfl.filesystem
from String to String
Available on AIR, Android, Flash, Linux, Neko, Windows, iOS, macOS
Variables
inlineread onlyAPPEND:String = cast "append"
Used for a file to be opened in write mode, with all written data appended to the end of the file. Upon opening, any nonexistent file is created. .
inlineread onlyREAD:String = cast "read"
Used for a file to be opened in read-only mode. The file must exist (missing files are not created).
inlineread onlyUPDATE:String = cast "update"
Used for a file to be opened in read/write mode. Upon opening, any nonexistent file is created.
inlineread onlyWRITE:String = cast "write"
Used for a file to be opened in write-only mode. Upon opening, any nonexistent file is created, and any existing file is truncated (its data is deleted).