FileMode

Specifies how a file is manipulated on disk.

Values

ValueMeaning
readFileOpenMode.read

The file is opened read-only.

readWriteFileOpenMode.readWrite

The file is opened for read-write random access.

createTruncFileOpenMode.createTrunc

The file is truncated if it exists or created otherwise and then opened for read-write access.

appendFileOpenMode.append

The file is opened for appending data to it and created if it does not exist.

Meta