File.Mode

enum Mode with Eq, ToStringSource
case ReadOnlycase ReadWritecase ReadWriteScase ReadWriteD

Represents a mode for opening files used by the function open.

ReadOnly opens the file in read-only mode, attempting to use any of the write functions on this file will result in an error.

ReadWrite opens the file in read-write mode, if the file does not exist the open function will try to create it.

ReadWriteS opens the file in read-write mode, and the files content or metadata will be written synchronously to the underlying storage device with each update.

ReadWriteD opens the file in read-write mode, and the files content will be written synchronously to the underlying storage device with each update.

Instances

instance Eq[Mode]Source
instance ToString[Mode]Source