What is the role of the file opening mode ios::trunk?

Trainee Asked on August 15, 2019 in C++ Language.
Add Comment
1 Answer(s)

If the file already exists, its content will be truncated before opening the file.

Supporter Answered on August 15, 2019.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.