X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fsupport%2Fcopy.C;h=b39c771b63003e0b6d834a5083b5d851ac9a02b9;hb=548a928e9b00d1b6de0d2f72c928fade790af642;hp=b89f2159494aa836f937e62e6292c69778ed059e;hpb=7ea7dabed1b72cc25dcbdc482ac006f2b61dacfd;p=lyx.git diff --git a/src/support/copy.C b/src/support/copy.C index b89f215949..b39c771b63 100644 --- a/src/support/copy.C +++ b/src/support/copy.C @@ -1,17 +1,29 @@ +/** + * \file copy.C + * This file is part of LyX, the document processor. + * Licence details can be found in the file COPYING. + * + * \author Lars Gullik Bjønnes + * + * Full author contact details are available in file CREDITS. + */ + #include #include #include "support/lyxlib.h" -#include "LString.h" + using std::ifstream; using std::ofstream; using std::ios; +using std::string; + -bool lyx::copy(string const & from, string const & to) +bool lyx::support::copy(string const & from, string const & to) { - ifstream ifs(from.c_str()); + ifstream ifs(from.c_str(), ios::binary); if (!ifs) return false; ofstream ofs(to.c_str(),