Méthode System::IO::File::ReadAllText
File::ReadAllText method
Lit le contenu du fichier texte spécifié dans un seul objet String en utilisant le codage de caractères spécifié.
static String System::IO::File::ReadAllText(const String &path, const EncodingPtr &encoding=Text::Encoding::get_UTF8())
| Paramètre | Type | Description |
|---|---|---|
| chemin | const String& | Le chemin du fichier à lire |
| encoding | const EncodingPtr& | L’encodage de caractères à utiliser |
ReturnValue
Une chaîne contenant le contenu du fichier spécifié
Voir aussi
- Class String
- Typedef EncodingPtr
- Class File
- Namespace System::IO
- Library Aspose.Font for C++