Mono Class Library: Mono.Unix.StdioFileStream Overview | Members

Mono.Unix.StdioFileStream Constructor

Opens path with the specified file mode mode and file access access.

public StdioFileStream (string path, System.IO.FileMode mode, System.IO.FileAccess access)

Parameters

path
A string containing the file name to open.
mode
A System.IO.FileMode value that determines how to open or create the file.
access
A System.IO.FileAccess value that determins how the file may be accessed by the Mono.Unix.StdioFileStream object. This parameter is used to specify the initial values of the System.IO.Stream.CanRead and System.IO.Stream.CanWrite properties.

Exceptions

TypeReason
ArgumentNullExceptionpath or mode is null.
ArgumentExceptionpath is a 0-length string.
System.IO.DirectoryNotFoundExceptionpath could not be opened.
System.IO.IOExceptionpath exists and System.IO.FileMode.CreateNew was specified.
System.IO.FileNotFoundExceptionpath doesn't exist and System.IO.FileMode.Open was specified.
ArgumentOutOfRangeExceptionaccess is not one of System.IO.FileAccess.Read, System.IO.FileAccess.Write, or System.IO.FileAccess.ReadWrite.

Remarks

Requirements

Namespace: Mono.Unix
Assembly: Mono.Posix (in Mono.Posix.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0