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

java - How to pass parameters between Request-Scoped Controllers? -

string - what is the difference between "some" == "some\0" and strcmp("some","some\0") in c++? -

actionscript 3 - Flex: moving a point with rotation doesnt change the point XY? -