اینجوری یک فایل تکست یونیکد رو می خونند البته کارکتر به کارکتر
#include <iostream>
#include <fstream>
using namespace std;
int main ()
{
wchar_t ch;
wifstream infile;
wfilebuf * inbuf;
infile.open("I:\\test-unicode.txt");
inbuf = infile.rdbuf();
ch = inbuf->sgetc();
while(ch != 0xffff)
{
wcout.put(ch);
ch = inbuf->snextc();
}
infile.close();
system("pause");
return 0;
}