May 1, 2014 Matthew Maennche C++, Learn To Code 11048, C++ 1 LANGUAGE: C++ CHALLENGE: Given an ofstream object named output, associate it with a file named yearsummary.txt by opening the file for writing. SOLUTION: output.open("yearsummary.txt");
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);