Otter SDK Reference
Version:

Open(string fileName, System.IO.FileMode fileMode, System.IO.FileAccess fileAccess, System.IO.FileShare fileShare, System.IO.FileOptions fileOptions) Method

Opens or creates the specified file.

Syntax

public static System.IO.FileStream Open(string fileName, System.IO.FileMode fileMode, System.IO.FileAccess fileAccess, System.IO.FileShare fileShare, System.IO.FileOptions fileOptions)

Parameters

fileName
Type: string

The name of the file to open.

fileMode
Type: System.IO.FileMode

The file mode.

fileAccess
Type: System.IO.FileAccess

The file access.

fileShare
Type: System.IO.FileShare

The file sharing rules.

fileOptions
Type: System.IO.FileOptions

The file options.

Returns

System.IO.FileStream backed by the specified file.

Exceptions

System.ArgumentNullException

fileName is null (Nothing in Visual Basic) or empty.