System::IO::File::Open method
Contents
[
Hide
]File::Open(const String&, FileMode) method
Opens the specified file in the specified mode for reading and writing and with no sharing.
static FileStreamPtr System::IO::File::Open(const String &path, FileMode mode)
Parameter | Type | Description |
---|---|---|
path | const String& | The path of the file to open |
mode | FileMode | Specifies the mode in which to open the file |
ReturnValue
A FileStream object associated with the opened file
See Also
- Typedef FileStreamPtr
- Class String
- Enum FileMode
- Class File
- Namespace System::IO
- Library Aspose.Page for C++
File::Open(const String&, FileMode, FileAccess, FileShare) method
Opens the specified file in the specified mode, with the specified access type and sharing option.
static FileStreamPtr System::IO::File::Open(const String &path, FileMode mode, FileAccess access, FileShare share=FileShare::None)
Parameter | Type | Description |
---|---|---|
path | const String& | The path of the file to open |
mode | FileMode | Specifies the mode in which to open the file |
access | FileAccess | The requested access type |
share | FileShare | The type of access that other FileStream objects have to the opened file |
ReturnValue
A FileStream object associated with the opened file
See Also
- Typedef FileStreamPtr
- Class String
- Enum FileMode
- Enum FileAccess
- Enum FileShare
- Class File
- Namespace System::IO
- Library Aspose.Page for C++