Thursday, November 3, 2011

stl

copy file:

#include <fstream>

std::copy(std::istreambuf_iterator<char>(std::ifstream(olddbfile)),std::istreambuf_iterator<char>(),std::ostream_iterator<char>(std::ofstream(newdbfile)));

No comments: