Enum FileMode
Defines constants for controlling how to open a file
public enum FileMode
Fields
Append = 3Appends to the existing file or creates a new one
Create = 1Creates a new file or overwrites an existing one
CreateNew = 2Creates a new file. Fails if the file already exists.
Open = 0Tries to open an existing file. Fails if the file doesn't exist.