Hi thanks,
Basically this is what I have. Note: f is declared as fstream
Code:
f.open(Name_v, ios::binary|ios::in|ios::out);
long int posl;
f.seekp(ios::beg);
for(long int i = 0; i < temp_v; ++i)
{
f.ignore(numeric_limits<streamsize>::max(),'\n');
}
posl = f.tellp();
f.seekp(posl);
When I check the file. It does not overwrite from the point where it moves to (temp_v).
Instead it just continues to append from the end of the file as if I didn't do any of the moving to a specific line stuff.
Any ideas?
cheers