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:
output.open("yearsummary.txt");