cout<<"\nYoure word in upper case : "<<inputString<<endl; string fileName = "upperLetter.txt"; ofstream fout(fileName); if(fout.is_open()) { fout<<inputString; fout.close(); cout<<"The word was written to the file : "<<fileName<<endl; } cin.clear(); cin.get(); return 0; }
Comments
Leave a comment