When you call file access-related functions, you can use enumeration members in your code in place of the actual values.
The OpenMode enumeration defines constants used to set file access modes. The following table lists the OpenMode enumeration members.
| Member | Description |
|---|---|
| OpenMode.Append | File opened to append to it |
| OpenMode.Binary | File opened for binary access |
| OpenMode.Input | File opened for write access |
| OpenMode.Output | File opened for read access |
| OpenMode.Random | File opened for random access |
Namespace: Microsoft.VisualBasic
Assembly: Microsoft.VisualBasic .NET Runtime (in Microsoft.VisualBasic.dll)
OpenShare Enumeration | OpenMode (Object Browser) | OpenAccess Enumeration