You need to write a program that would translate a text file from character encoding MS-DOS CP866 encoding Windows-1251.
I can't find information how to construct a text file at the level of coding and how to read encoded characters, there are only encoding.
Wrote program code where a single character is recorded in a binary file, when you open this file in a text editor do not get anything intelligible.
using namespace std;
int x=0, y=412;
How can you extract the character codes from a text file?