// reading an entire binary file#include#include #include #include using namespace std;int main () { streampos size; char * memblock; char * memblock2; bitset<8> bbb =8; vector vecint; ifstream file ("3.rar", ios::in|ios::binary|ios::ate); ofstream ofile("4.rar", ios::out|ios::binary|ios::ate); if (file.is_open()) { size = file.tellg(); memblock = new char [size]; memblock2 = new char [size]; file.seekg (0, ios::beg); file.read (memblock, size); for (int j=0;j