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(), std::ios::out|std::ios::trunc);
13 if (!ofs) return false;
15 if (ofs.good()) return true;