System::IO::File::OpenText method
File::OpenText method
Opens the specified existing file for reading text using UTF-8 encoding with no sharing.
static StreamReaderPtr System::IO::File::OpenText(const String &path, const EncodingPtr &encoding=Text::Encoding::get_UTF8Unmarked())
Parameter | Type | Description |
---|---|---|
path | const String& | The path of the file to open |
encoding | const EncodingPtr& | The character encoding to use |
ReturnValue
A shared pointer to a StreamWriter object associated with the opened file
See Also
- Typedef StreamReaderPtr
- Class String
- Typedef EncodingPtr
- Class File
- Namespace System::IO
- Library Aspose.Page for C++