Multiple choice

Which of the following file modes is used in C++ if the user has to turn down opening when the file already exists?

  1. ios::app

  2. ios::in

  3. ios::noreplace

  4. ios::nocreate

  5. ios::trunk

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

This file mode is used in C++ if the user has to turn down opening when the file already exists.