OpenText()
File::OpenText(const String&, const EncodingPtr&) 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())
Arguments
Parameter | Type | Description |
---|---|---|
path | const String& | The path of the file to open |
encoding | const EncodingPtr& | The character encoding to use |
Return Value
A shared pointer to a StreamWriter object associated with the opened file
See Also
- Typedef StreamReaderPtr
- Typedef EncodingPtr
- Class String
- Class File
- Namespace System::IO
- Library Aspose.Slides