12345678
std::ifstream ifs(L"c:\\james.rar"); char buff[1000]; ifs.seekg (0, std::ios::beg); int count = 0; while(!ifs.eof()) { ifs.getline(buff, 1000); std::cout << count++ << std::endl; }
std::ifstream ifs(L"c:\\james.rar", std::ios::binary);
std::ifstream ifs(L"c:\\james.rar", std::ios::binary); char buff[1000]; ifs.seekg (0, std::ios::beg); int count = 0; while(!ifs.eof()) { ifs.read(buff, 1000); std::cout << count++ << std::endl; }