C ++ Question: Opening an Output file
Results 1 to 2 of 2

Thread: C ++ Question: Opening an Output file

  1. #1
    Registered User ±Octavian's Avatar
    Join Date
    Sep 2000
    Location
    Michigan
    Posts
    289

    C ++ Question: Opening an Output file

    It has been awhile since I have program in this language so I am a little rusty. Anyway here is what I am not thinking of a way to program yet.

    How do you open an output file and write information to that file underneath what is already there?
    Faith is the substance of things not known and the Evidence of things not seen.

  2. #2
    Registered User ±Octavian's Avatar
    Join Date
    Sep 2000
    Location
    Michigan
    Posts
    289

    Solution

    Solution:

    Code:
    ofstream outfile;
    
    outfile.open("file name", ios::out|ios::app);
    Faith is the substance of things not known and the Evidence of things not seen.

Bookmarks

Posting Permissions

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