let's say i have an ifstream and an ofstream. how can i read/write to a specific byte on a file?
the only way i know how so far is by reading the whole file into memory and doing it there. thanks in advance
let's say i have an ifstream and an ofstream. how can i read/write to a specific byte on a file?
the only way i know how so far is by reading the whole file into memory and doing it there. thanks in advance
Use ifstream::seekg() and ofstream::seekp()
Look them up on MSDN for details.