What is the purpose of the ios::app flag in C++ file handling?
A. Appends data to the end of the file
B. Opens the file in append mode
C. Opens the file in write mode
D. Opens the file in read mode
Answer: Option B
A. Appends data to the end of the file
B. Opens the file in append mode
C. Opens the file in write mode
D. Opens the file in read mode
Answer: Option B
Which header file is required for file handling in C++?
A. <iostream>
B. <fstream>
C. <file>
D. <filestream>
Join The Discussion