Opens path with the specified file mode mode and file access access.
- 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.
Type Reason ArgumentNullException path or mode is null. ArgumentException path is a 0-length string. System.IO.DirectoryNotFoundException path could not be opened. System.IO.IOException path exists and System.IO.FileMode.CreateNew was specified. System.IO.FileNotFoundException path doesn't exist and System.IO.FileMode.Open was specified. ArgumentOutOfRangeException access is not one of System.IO.FileAccess.Read, System.IO.FileAccess.Write, or System.IO.FileAccess.ReadWrite.
Namespace: Mono.Unix
Assembly: Mono.Posix (in Mono.Posix.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0