LearnFrenzy
Sign in Take a free test

File Handling (fstream) · File Handling MCQ · Question 4

How do you add to the end of a file? Answer, explanation & discussion

  • MCQ
  • Easy
  • 0 comments
  • Answer explained
  • Moderated community
Question 4 Back to Exercise

Which mode makes every write go to the end of the file?

  • A std::ios::trunc
  • B std::ios::app Correct
  • C std::ios::in
  • D std::ios::beg
Correct Answer: Option B

Typical for log files.

Discussion & Comments 0

Share your method, a shortcut, or ask about a step you didn't follow.

No comments yet. Be the first to share your solution!

Post your comment

Comments appear after a quick review by our team.

Search LearnFrenzy

Esc

Quick links