What are you doing? I can't even understand your question. Better to have too much detail than too little.
If you're trying to add to the std:: namespace I believe it is possible; namespaces are compiled across multiple translation units.
OK.
In that case you need to learn how to use the STL's file IO classes (fstream, ofstream, ifstream). You can find an explanation in the last chapter of this website's tutorial. http://www.cplusplus.com/doc/tutorial/files/
I don't ever recall a std::remove though.