Enum FileAccess.ModeFlags
- Namespace
- Godot
- Assembly
- GodotSharp.dll
public enum FileAccess.ModeFlags : long
Fields
Read = 1
Opens the file for read operations. The cursor is positioned at the beginning of the file.
ReadWrite = 3
Opens the file for read and write operations. Does not truncate the file. The cursor is positioned at the beginning of the file.
Write = 2
Opens the file for write operations. The file is created if it does not exist, and truncated if it does.
Note: When creating a file it must be in an already existing directory. To recursively create directories for a file path, see MakeDirRecursive(string)).
WriteRead = 7
Opens the file for read and write operations. The file is created if it does not exist, and truncated if it does. The cursor is positioned at the beginning of the file.
Note: When creating a file it must be in an already existing directory. To recursively create directories for a file path, see MakeDirRecursive(string)).