解决std::ofstream操作中文路径下文件的问题

filePath = 文件绝对路径

std::locale loc = std::locale::global(std::locale(""));
        std::ostream* logFile = new std::ofstream(filePath)
        std::locale::global(std::locale(loc ));

posted @ 2011-03-29 15:42  毛志谦  阅读(1958)  评论(0编辑  收藏  举报