Méthode System::IO::File::WriteAllText
File::WriteAllText method
Crée un nouveau fichier texte ou écrase l’existant et y écrit le contenu de la chaîne spécifiée en utilisant l’encodage spécifié.
static void System::IO::File::WriteAllText(const String &path, const String &contents, const EncodingPtr &encoding=Text::Encoding::get_UTF8Unmarked())
| Paramètre | Type | Description |
|---|---|---|
| chemin | const String& | Le fichier à créer ou à écraser |
| contenu | const String& | Un tableau de chaînes |
| encoding | const EncodingPtr& | Le codage des caractères à utiliser |
Voir aussi
- Class String
- Typedef EncodingPtr
- Class File
- Namespace System::IO
- Library Aspose.Page for C++