OpenMode
Namespace: SharpPluginLoader.Core.IO
Specifies how to open a file.
public enum OpenMode
Inheritance Object → ValueType → Enum → OpenMode
Implements IComparable, ISpanFormattable, IFormattable, IConvertible
Fields
Name | Value | Description |
---|---|---|
None | 0 | Do not open the file. |
Read | 2 | Open the file for reading. If the file does not exist, an exception will be thrown. |
Write | 3 | Open the file for writing. If the file exists, it will be truncated. If it does not exist, it will be created. |
WriteAppend | 4 | Open the file for writing. If the file exists, it will be appended to. If it does not exist, it will be created. |
ReadWrite | 5 | Open the file for reading and writing. If the file exists, it will be truncated. If it does not exist, it will be created. |
ReadWriteAppend | 6 | Open the file for reading and writing. If the file exists, it will be appended to. If it does not exist, it will be created. |