|
-
February 3rd, 2009, 08:29 PM
#1
Difference between ostream and ofstream
Hi, ALL,
I have a function that's open an ofstream and writes some data to it. It's working fine.
I also have a function that opens the same file using ostream. It opens it for adding data. The problem is that after creating the file, I'd like to move the file pointer behind the eof. However, it looks like I couldn't do it.
I'm using Visual Studio 6.
Is it a bug in the compiler and I should upgrade or it is a problem with my code and I should use ofstream?
Thank you.
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
|