OpenFile
Opens a file with a FileStream
Public Function OpenFile(
ByVal Path As String,
ByVal Mode As FileMode,
Optional ByVal Access As FileAccess = - 1,
Optional ByVal Share As FileShare = FileShare. None ) As FileStream
Parameters
- Path
-
[ByVal]
String.
The file to be opened.
- Mode
-
[ByVal]
FileMode.
The mode in which to open the file.
- Access
-
[ByVal]
Optional.
FileAccess.
The type of access allowed by the FileStream.
Default: - 1
- Share
-
[ByVal]
Optional.
FileShare.
The access allowed for other processes.
Default: FileShare . None
Return Values
FileStream - A FileStream object of the specified file.
Remarks
See Also
Project VBCorLib Overview
| Class File Overview