if i want to "Delete", or not write the first 4 characters of a memory block... how do i do so?
heres some sample code
in.open ("C:\\moviecopy.wmv", ios::binary );
in.seekg (0, ios::end);
length = in.tellg();
in.seekg (0, ios::beg);
buffer = new char [length];
in.read (buffer,length);
in.close();
out.open("C:\\moviecopyfix.wmv");
out.write(buffer,length);
out.close();
i want to take out the first four characters in this binary memory block... please help
heres some sample code
in.open ("C:\\moviecopy.wmv", ios::binary );
in.seekg (0, ios::end);
length = in.tellg();
in.seekg (0, ios::beg);
buffer = new char [length];
in.read (buffer,length);
in.close();
out.open("C:\\moviecopyfix.wmv");
out.write(buffer,length);
out.close();
i want to take out the first four characters in this binary memory block... please help