file.h
#include<string>
#include<Windows.h>
#include <atlstr.h>
#include <atltrace.h>
#include <fstream>
#include <vector>
using namespace std;
class FileHelper {
private:
bool first = true;
wchar_t str[1024] = {
0 };
void UnicodeToANSI(wchar_t* src, char* dst);
/// <summary>
///
/// </summary>
/// <param name="out"></param>
void writeUnicodeFileHead(std::ofstream& out);
/// <summary>
///
/// </summary>
/// <param name="out"></param>
/// <param name="str"></param>
/// <param name="size"></param>
void writeUnicodeFileContent(std::ofstream& out, wchar_t const* str, int size);
/// <summary>
///
/// </summary>
/// <param name="out"></param>
void writeUnicodeFileCRLF(std::ofstream& out);
public:
string getEncoding(string path);
void writeUnicodeLine(std::ofstream