#include <fstream> #include <iostream> #include <Windows.h> using namespace std; bool Copy(LPCTSTR lpSourceFileName, LPCTSTR lpTargetFileName) { char temp; ifstream ifstream(lpSourceFileName); ofstream ofstream(lpTargetFileName); if (ifstream && ofstream) { while (ifstream.get(temp)) { ofstream.put(temp); } return true; } ifstream.close(); ofstream.close(); return false; }