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

Popular posts from this blog

iphone - Dismissing a UIAlertView -

c# - Can ProtoBuf-Net deserialize to a flat class? -

javascript - Change element in each JQuery tab to dynamically generated colors -