123456
std::ifstream ifs("my_data_file.dat", std::ios_base::binary); ifs.read(...); // or ifs.get(ch); // etc...