System::IO::File::Open メソッド
File::Open(const String&, FileMode) method
指定されたモードで指定されたファイルを読み書き用に開き、共有しません。
static FileStreamPtr System::IO::File::Open(const String &path, FileMode mode)
| パラメーター | 型 | 説明 |
|---|---|---|
| パス | const String& | 開くファイルのパス |
| mode | FileMode | ファイルを開くモードを指定します |
ReturnValue
開かれたファイルに関連付けられた FileStream オブジェクト
参照
- Typedef FileStreamPtr
- Class String
- Enum FileMode
- Class File
- Namespace System::IO
- Library Aspose.Page for C++
File::Open(const String&, FileMode, FileAccess, FileShare) method
指定されたモードで、指定されたアクセス種別と共有オプションを使用して指定されたファイルを開きます。
static FileStreamPtr System::IO::File::Open(const String &path, FileMode mode, FileAccess access, FileShare share=FileShare::None)
| パラメーター | 型 | 説明 |
|---|---|---|
| パス | const String& | 開くファイルのパス |
| mode | FileMode | ファイルを開くモードを指定します |
| アクセス | FileAccess | 要求されたアクセス種別 |
| share | FileShare | 他の FileStream オブジェクトが開かれたファイルに対して持つアクセスの種類 |
ReturnValue
開かれたファイルに関連付けられた FileStream オブジェクト
参照
- Typedef FileStreamPtr
- Class String
- Enum FileMode
- Enum FileAccess
- Enum FileShare
- Class File
- Namespace System::IO
- Library Aspose.Page for C++