Version:
Open(string fileName, System.IO.FileMode fileMode, System.IO.FileAccess fileAccess, System.IO.FileShare fileShare) 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)
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.
Returns
System.IO.FileStream backed by the specified file.
Exceptions
System.ArgumentNullException
|
fileName is null (Nothing in Visual Basic) or empty.
|