Qualcun altro però potrebbe anche leggersi un manuale di C++...codice:string tuaStringa; ifstream is; is.open("nomefile.ext",ios::in); if(is) { getline(is,tuaStringa); is.close(); }![]()
Qualcun altro però potrebbe anche leggersi un manuale di C++...codice:string tuaStringa; ifstream is; is.open("nomefile.ext",ios::in); if(is) { getline(is,tuaStringa); is.close(); }![]()
Amaro C++, il gusto pieno dell'undefined behavior.