Hi

I have been searching for a solution for this for ages but could not find anything:

I have a binary file which I want to open and modify a value. However when I use something like:

ofstream outfile(filename,ios:ut|ios::binary);

the code overwrites the file.

What should I be using so I don't overwrite the existing file?

I am using Visual C++ v6.

Cheers

Robbie