Unicode support in MFC, Visual C++ file operations -
i wanted add <br/> tag each , every line of file. have written following line of code.
it working fine english files.
cfiledialog cfd(true); cstring filename, strline; if(cfd.domodal()== idok) { filename = cfd.getpathname(); cstdiofile infile(filename, cfile::moderead); cstdiofile fileout(filename+l"out.txt", cfile::modecreate|cfile::modewrite); while(infile.readstring(strline)) { fileout.writestring(strline); fileout.writestring(l"<br/>\n"); } infile.close(); fileout.close(); } but same program reads , writes first string in output file tamil (unicode). there solution resolve issue?
how ? simple codes welcome. don't want use file pointers , fstream.. :)
Comments
Post a Comment