Ask Question

Given an ofstream object named output, associate it with a file named yearsummary. txt for output in a way that truncates (erases) any existing data in the file.

+3
Answers (1)
  1. 26 June, 01:07
    0
    The answer is output. open ("yearsummary. txt", ios::trunc)

    Explanation:

    Given an ofstream object named output, associate it with a file named yearsummary. txt for output in a way that truncates (erases) any existing data in the file. The file is output. open ("yearsummary. txt", ios::trunc)
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “Given an ofstream object named output, associate it with a file named yearsummary. txt for output in a way that truncates (erases) any ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers