[Solved] making function accept the path that’s inside the string variable


Simple

remove(b1.c_str());

call c_str() to get a pointer to a C string from a C++ string.

1

solved making function accept the path that’s inside the string variable