Defines how to open a file. The file mode is a required parameter for the FileOpen function.
C#
public enum FileOpenMode
VB
Public Enum FileOpenMode
Name | Description |
---|---|
Read | Opens the file for reading. |
Write | Opens the file for writing. If the file does not exist, it is created. If the file exists, it is truncated to zero (0) bytes. |
ReadWrite | Opens the file for reading and writing. |
Update | Opens the file for writing, but does not truncate the file. Denies write access to other users by default. The file pointer is positioned at the beginning of the file. |