← Quiz: File Handling in C++: all 10 questions
Quiz: File Handling in C++ · Question 6 of 10
Which mode flag makes every write go to the end of the file?
Which mode flag makes every write go to the end of the file?
- A.ios::ate
- B.ios::trunc
- C.ios::in
- D.ios::app
Answer & explanation
Correct answer: ios::app
ios::app appends; ios::ate only starts at the end and still lets you move.
Can you get the rest right without peeking?
Take the timed Quiz: File Handling in C++ quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →