FileInfoOpen(FileMode, FileAccess, FileShare) Method |
Opens a file in the specified mode with read, write, or read/write access
and the specified sharing option.
Namespace: Crestron.SimplSharp.CrestronIOAssembly: SimplSharpHelperInterface (in SimplSharpHelperInterface.dll) Version: 2.21.121
Syntaxpublic FileStream Open(
FileMode mode,
FileAccess access,
FileShare share
)
Parameters
- mode FileMode
- Specified mode to open the file. (Open, Append, etc.)
- access FileAccess
- Constant that specifies the file access allowed by the stream. (Read, Write, etc.)
- share FileShare
-
A FileShare constant specifying the type of access other FileStream
objects have to this file.
Return Value
FileStreamFileStream instance of the current file.
ExceptionsVersion Information
.NET
Supported in: 6.0
.NET Compact Framework
Supported in: 3.5
See Also