i need help with this bit of code. compiling it gives me an error
1 2 3 4 5 6
string filename;
string directory = "c:\\profiledata\\";
cout << "Enter in filename you want to delete\n";
cin.ignore();//use this because getline skips
getline(cin, filename);
remove(directory + filename); //error on this line