C++:
std::ifstream fileI( "filename.txt", std::ios::in|std::ios::binary ); // Poprawka
char ch;
fileI.read( &ch, 1 );
fileI.close();
C stdio:
FILE fileI = fopen( "filename.txt", "rb" );
char ch;
fread( &ch, sizeof(char), 1, fileI );
fclose( fileI );
E: po więcej zapraszam na: cplusplus.com