## File::ReadAllText method


Lit le contenu du fichier texte spécifié dans un seul objet [String](../../../system/string/) en utilisant le codage de caractères spécifié.

```cpp
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](../../../system/string/)
* Typedef [EncodingPtr](../../../system/encodingptr/)
* Class [File](../)
* Namespace [System::IO](../../)
* Library [Aspose.Font for C++](../../../)
