System::IO::File::ReadAllLines メソッド
File::ReadAllLines method
指定された文字エンコーディングを使用し、指定されたテキストファイルの内容を行ごとに文字列配列に読み取ります。
static ArrayPtr<String> System::IO::File::ReadAllLines(const String &path, const EncodingPtr &encoding=Text::Encoding::get_UTF8())
| パラメーター | 型 | 説明 |
|---|---|---|
| パス | const String& | 読み取るファイルのパス |
| エンコーディング | const EncodingPtr& | 使用する文字エンコーディング |
ReturnValue
各要素が指定されたファイルの単一行を表す文字列配列
参照
- Typedef ArrayPtr
- Class String
- Typedef EncodingPtr
- Class File
- Namespace System::IO
- Library Aspose.Page for C++