Mark As Completed Discussion

Try this exercise. Click the correct answer from the options.

Which of the following methods is/are used for File Input/Output in C++?

1) ofstream() and infile() 2) ifstream() and outfile() 3) ifstream() and ofstream() 4) infile() and outfile()

Click the option that best answers the question.

  • ofstream() and infile()
  • ifstream() and outfile()
  • ifstream() and ofstream()
  • infile() and outfile()