Given an ofstream object named output, associate it with a file named yearsummary.txt by opening the file for writing.

LANGUAGE: C++

CHALLENGE:

Given an ofstream object named output, associate it with a file named yearsummary.txt by opening the file for writing.

SOLUTION:

The Bad News: The content you are trying to access is only available to members.

The Good News: You too can be a member, simply Click Here.

Already a member?

Posted in ,

1 Comment

  1. Grant Sperry on October 26, 2015 at 5:37 pm

    Given an ofstream object named output , associate it with a file named yearsummary.txt by opening the file for appending.

    output.open(“yearsummary.txt”,ios::app);

Leave a Comment

You must be logged in to post a comment.