The modes in which a File can be opened.

Constants

dynamic APPEND = const FileMode._internal(2)
const

The mode for opening a file for reading and writing to the end of it. The file is created if it does not already exist.

dynamic READ = const FileMode._internal(0)
const

The mode for opening a file only for reading.

dynamic WRITE = const FileMode._internal(1)
const

The mode for opening a file for reading and writing. The file is overwritten if it already exists. The file is created if it does not already exist.