codice:
ofstream myfile;
myfile.open ("C:/Documents and Settings/Xxxx/Documenti/test/esempio.txt");
myfile<<"prova\n";
myfile.close();