ifstream in("dos.txt");//кирилица dos, название кодировок брал из Internet explorer ofstream out("1251.txt");//кирилица Windows .....