I am trying to teach myself file I/O by making a address book program where the user can create, edit, and list all of their contacts. The issue I am having is that I want them to be able to delete a contact, i can't use the 'remove()' function because it only takes const char's. The issue is in the second switch statement. Here is my code:
no remove isn't my own function, it deletes files. look up the syntax for remove for c++. it says it takes const char's. And i tried the the .c_str, and that didn't delete the file. It didn't do anything actually.
EDIT: Okay the .c_str() thing worked its just that the destination was wrong but thank you so much!