|
-
June 26th, 2007, 11:37 AM
#1
Opening a file without overwriting it!
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|