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

Popular posts from this blog

c++ - CryptStringToBinary API behavior -

c++ - Correct method for redrawing a layered window -

java.util.scanner - How to read and add only numbers to array from a text file -