12
int offset; mystream.read((char*)&offset, sizeof(offset)); // if the offset is binary
mystream >> offset; // if the offset is literally the characters 0x00000001