> pls see belowed:
> vector < string > ary;
> fstream fs;
> copy(istream_iterator< string>(fs),
> istream_iterator< string >(),
> back_inserter(ary));
> copy(ary.begin(), ary.end(),
> ostream_iterator< string>(cout, L"\r\n"));
> read a text and display it.
> now, i want to change it, to read a Unicode-Text file.
> i tried to do...like this
> vector < wstring > ary;
> wfstream fs;
> copy(istream_iterator< wstring, wchar_t >(fs),
> istream_iterator< wstring, wchar_t >(),
> back_inserter(ary));
> DWORD dwBeg = GetTickCount();
> copy(ary.begin(), ary.end(),
> ostream_iterator< wstring, wchar_t >(wcout, L"\r\n"));
> but, the result was too bad, i trace it, i found the wfstream used
mbstowcs function to convert the data to wide character, but, the file had