File.ModeFlags

Values

ValueMeaning
read1

Opens the file for read operations.

write2

Opens the file for write operations. Create it if the file does not exist and truncate if it exists.

readWrite3

Opens the file for read and write operations. Does not truncate the file.

writeRead7

Opens the file for read and write operations. Create it if the file does not exist and truncate if it exists.

Meta