Fichier c++builder

sophia -  
maxwelhouse Messages postés 275 Date d'inscription   Statut Membre Dernière intervention   -
Bonjour,
please j'arrive pas à ecrire dans mon fichier texte aidez moi corriger moi c important

voila le code
{
ofstream fichier;
fichier.open("D:\fichierr.txt",ios::out | ios::trunc);

char *var="sophia";
fichier.write(reinterpret_cast<const char *>(var),6);
}
pour les bibliothèque
#include <iostream.h>
A voir également:

1 réponse

maxwelhouse Messages postés 275 Date d'inscription   Statut Membre Dernière intervention   27
 
erf...
0