#include <iostream>
#include <Windows.h>
#include <string>
#include <fstream>
using namespace std;
// c++ API path " read.txt", name "write.txt"
void readand_write(char* path,char* name)
{
char* filedata = NULL;
std::ifstream file_;
std::ofstream outfile;
file_.open(path, std::ios::binary);
//获取文件长度
streampos pos = file_.tellg();
file_.seekg(0,ios::end);
int size = file_.tellg();
file_.seekg(pos);
filedata = new char [size + 1];
file_.read(filedata,size);
filedata[size] = 0;
outfile.open(name);
outfile<<filedata;
delete [] filedata;
outfile.close();
outfile.clear();
file_.close();
file_.clear();
}
// windows API
void ReadF(wchar_t