Please can anyone tell me what is wrong with this function.I am trying to create a text file but its not workingCode:void Grades ::createFile(){ string s; string filename; cout<<"please enter the name you want to name your file"; cin>>filename; cout<<"please enter the text you want to create"; cin>>s; ofstream mfile; mfile.open(filename); mfile<<s; mfile.close(); }



LinkBack URL
About LinkBacks



