История изменений
      
        Исправление
      wota,
      
        (текущая версия)
      :
    
если у тебя не получилось читать файл, то это делается так:
#include <algorithm>
#include <fstream>
#include <iostream>
#include <locale>
using namespace std;
int main()
{
	setlocale(LC_ALL, "ru_RU.UTF-8");
	wifstream f( "data.txt" );
	f.imbue( locale( "ru_RU.UTF-8" ) );
	while( f.good() )
	{
		wstring s;
		f >> s;
		transform( s.begin(), s.end(), s.begin(), towlower );
		wcout << s << endl;
	}
}
      
        Исходная версия
      wota,
      :
    
если у тебя не получил читать файл, то это делается так:
#include <algorithm>
#include <fstream>
#include <iostream>
#include <locale>
using namespace std;
int main()
{
	setlocale(LC_ALL, "ru_RU.UTF-8");
	wifstream f( "data.txt" );
	f.imbue( locale( "ru_RU.UTF-8" ) );
	while( f.good() )
	{
		wstring s;
		f >> s;
		transform( s.begin(), s.end(), s.begin(), towlower );
		wcout << s << endl;
	}
}