The modes in which a File can be opened.

Constants

dynamic APPEND = const FileMode._internal(2)
const

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

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.

dynamic WRITE_ONLY = const FileMode._internal(3)
const

Mode for opening a file for writing only. The file is overwritten if it already exists. The file is created if it does not already exist.

dynamic WRITE_ONLY_APPEND = const FileMode._internal(4)
const

Mode for opening a file for writing only to the end of it. The file is created if it does not already exist.