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