System::IO::File::OpenText メソッド

File::OpenText method

UTF-8 エンコーディングを使用し、共有せずに、指定された既存ファイルをテキスト読み取り用に開きます。

static StreamReaderPtr System::IO::File::OpenText(const String &path, const EncodingPtr &encoding=Text::Encoding::get_UTF8Unmarked())
パラメーター説明
パスconst String&開くファイルのパス
エンコーディングconst EncodingPtr&使用する文字エンコーディング

ReturnValue

開かれたファイルに関連付けられた StreamWriter オブジェクトへの shared pointer

参照