wofstream 输出CString Unicode|路径中文名支持
wofstream hFile(L"D://Res.xml",ios::app); // _SH_DENYRW is deny read and writeif (!hFile) // if the file could open, hFile is a handle, else is zero{cout cout }else{ hFile.imbue(std::locale("chs"));hFile cout }hFile.cl
原创
2011-04-01 14:15:00 ·
1164 阅读 ·
0 评论