Visual Basic Language Reference  

OpenMode Enumeration

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

Requirements

Namespace: Microsoft.VisualBasic

Assembly: Microsoft.VisualBasic .NET Runtime (in Microsoft.VisualBasic.dll)

See Also

OpenShare Enumeration | OpenMode (Object Browser) | OpenAccess Enumeration