I am developing a very simple notepad-type program in C++. The only problem is that when I prompt the user to delete their newly written text file, it doesn't work. Since I let the user pick the name for his/her file, I can't figure out the code to delete it. IT'S VERY URGENT. PLEASE HELP!!!
If (fSave == "n")
[
//How do I delete a file with a string name???
]
P.S.
To let the user choose the file name, I did
myfile.open (fname.c_str());