Open a file

Namespace: Contracts.IO
Assembly: Contracts (in Contracts.dll)

Public Shared Function Open( _ 
ByVal path As String, _ 
ByVal mode As FileMode, _ 
ByVal access As FileAccess
) As FileStream
This language is not supported or no code example is available.
public static FileStream Open( 
string path
FileMode mode
FileAccess access 
)
This language is not supported or no code example is available.
public:  
static FileStream^ Open( 
String^ path
FileMode mode
FileAccess access 
)
This language is not supported or no code example is available.
public static function Open( 
path : String
mode : FileMode
access : FileAccess 
) : FileStream;
This language is not supported or no code example is available.

Parameters

path
Type: string

<default>

mode
Type: FileMode

<default>

access
Type: FileAccess

Return Value

Type: FileStream

.NET Framework

Supported in: 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1