c++ - deleting a file with string in the arguments -
c++ - deleting a file with string in the arguments -
how can remove file directory in c++ ?
i know function int remove ( const char * filename ) deletes file file name specified in argument. accepts char* . there other function in c++ accepts string it's argument ?
if have std::string, can const char* calling c_str() fellow member function.
the remove function <cstdio> part of c standard library. c has no concept of classes or std::string, hence why function takes const char* , not std::string.
c++ string visual-c++
Comments
Post a Comment