//wofstream 要输出中文到文件中,需要将全局locale设为本地语言
locale &loc = locale::global(locale(locale( ), "", LC_CTYPE));
std::wofstream ofs;
ofs.open(strDataPath.c_str( ), std::ios::out | std::ios::app);
if (ofs.is_open( ))
{
ofs.write(strResource.c_str( ), strResource.length());
}
//全局locale恢复原来的设置