Results 1 to 2 of 2

Thread: Appending to a file using fstream.h

  1. #1

    Thread Starter
    Lively Member dubae524's Avatar
    Join Date
    Jun 2001
    Location
    Currently on this Super Star Destroyer being telekinetically strangled to death by Darth Vader
    Posts
    78

    Appending to a file using fstream.h

    Can somebody please tell me how to append to a file using fstream with VC++? Note the keyword "append", I already know how to overwrite a file using fstream, but I want to know how I can append. The Internet is no help at all (esp. Microsoft's MSDN website, which I'm sick and tired of and am not even going to go to for help anymore), so I have turned here as a last result. If anybody could help me, it would be appreciated, thanks.
    - Justin Patrick Butler

    Comme je trouve. "As I find."
    - Butler family quote

    Beneficia sumptos procul superant. "The benefits far exceed the costs."
    - Myself

  2. #2
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    For the open mode, use ios::append
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width