I was hoping it would be that simple : -) but when I tried:
with my file name it still did not delete the file. I don't get any errors when compiling and executing the file simply does not get deleted. I checked my file locations and name and everything seems correct...
am I missing something, here is the code:
file.open("C:\\mydbresults.txt", ios::in); //What ever your file is
//Check for file exist
CString facts = "File not found";
//MessageBox(buffer,NULL,MB_OK); //Test buffer
buffer = buffer + x;