System::IO::FileInfo::Open method

FileInfo::Open(FileMode) method

Opens the file represented by the current object in the specified mode for reading and writing and with no sharing.

FileStreamPtr System::IO::FileInfo::Open(FileMode mode)
ParameterTypeDescription
modeFileModeSpecifies the mode in which to open the flie

ReturnValue

A FileStream object associated with the file represented by the current object

See Also

FileInfo::Open(FileMode, FileAccess) method

Opens the file represented by the current object in the specified mode, with the specified access type and with no sharing.

FileStreamPtr System::IO::FileInfo::Open(FileMode mode, FileAccess access)
ParameterTypeDescription
modeFileModeSpecifies the mode in which to open the flie
accessFileAccessThe requested access type

ReturnValue

A FileStream object associated with the file represented by the current object

See Also

FileInfo::Open(FileMode, FileAccess, FileShare) method

Opens the file represented by the current object in the specified mode, with the specified access type and sharing option.

FileStreamPtr System::IO::FileInfo::Open(FileMode mode, FileAccess access, FileShare share)
ParameterTypeDescription
modeFileModeSpecifies the mode in which to open the flie
accessFileAccessThe requested access type
shareFileShareThe type of access that other FileStream objects have to the opened file

ReturnValue

A FileStream object associated with the file represented by the current object

See Also