how to write a unicode string to a text file
-
I want to write a CStringW string to a wfstream but it doesn't seem to work. Does anyone know how to do this? my sipet is: CStringW sRus(_T("ершы шы ф еуые")); wfstream outFile; outFile.open("C:\\Junk.txt",ios_base::out); outFile << sRus << '\n'; outFile.close(); Chris
-
I want to write a CStringW string to a wfstream but it doesn't seem to work. Does anyone know how to do this? my sipet is: CStringW sRus(_T("ершы шы ф еуые")); wfstream outFile; outFile.open("C:\\Junk.txt",ios_base::out); outFile << sRus << '\n'; outFile.close(); Chris
I haven't used wfstream before, but this article may be useful :- http://www.codeproject.com/file/stdiofileex.asp[^]
-
I want to write a CStringW string to a wfstream but it doesn't seem to work. Does anyone know how to do this? my sipet is: CStringW sRus(_T("ершы шы ф еуые")); wfstream outFile; outFile.open("C:\\Junk.txt",ios_base::out); outFile << sRus << '\n'; outFile.close(); Chris
-
I want to write a CStringW string to a wfstream but it doesn't seem to work. Does anyone know how to do this? my sipet is: CStringW sRus(_T("ершы шы ф еуые")); wfstream outFile; outFile.open("C:\\Junk.txt",ios_base::out); outFile << sRus << '\n'; outFile.close(); Chris