System::IO::File::OpenText method
File::OpenText method
Ouvre le fichier existant spécifié pour lire du texte en utilisant l’encodage UTF-8 sans partage.
static StreamReaderPtr System::IO::File::OpenText(const String &path, const EncodingPtr &encoding=Text::Encoding::get_UTF8Unmarked())
| Paramètre | Type | Description |
|---|---|---|
| chemin | const String& | Le chemin du fichier à ouvrir |
| encoding | const EncodingPtr& | L’encodage de caractères à utiliser |
ReturnValue
Un pointeur partagé vers un objet StreamWriter associé au fichier ouvert.
Voir aussi
- Typedef StreamReaderPtr
- Class String
- Typedef EncodingPtr
- Class File
- Namespace System::IO
- Library Aspose.Font for C++