OpenFile
Opens the file as a FileStream.
Public Function OpenFile(
ByVal Mode As FileMode,
Optional ByVal Access As FileAccess = ReadWriteAccess,
Optional ByVal Share As FileShare = FileShare. None ) As FileStream
Parameters
- Mode
-
[ByVal]
FileMode.
The method of opening the file.
- Access
-
[ByVal]
Optional.
FileAccess.
The read/write operations allowed by this FileStream.
Default: ReadWriteAccess
- Share
-
[ByVal]
Optional.
FileShare.
The read/write operations allows by other processes.
Default: FileShare . None
Return Values
FileStream - A FileStream object to this file.
See Also
Project CorLib Overview
Class FileInfo Overview