5 #include "support/lyxlib.h"
8 bool lyx::copy(string const & from, string const & to)
10 std::ifstream ifs(from.c_str());
11 if (!ifs) return false;
12 std::ofstream ofs(to.c_str(),
13 std::ios::binary | std::ios::out | std::ios::trunc);
14 if (!ofs) return false;
16 if (ofs.good()) return true;