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

Mono.Unix.StdioFileStream Constructor

Opens path with the specified file mode mode.

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

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.

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.

Remarks

Requirements

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