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

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

LANGUAGE: C++

CHALLENGE:

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

SOLUTION:



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

Add comment