Explain the 2 methods of opening a data file in C++
Answers
Answered by
4
Answer:
Explanation:
Either ofstream or fstream object may be used to open a file for writing. And ifstream object is used to open a file for reading purpose only. Following is the standard syntax for open() function, which is a member of fstream, ifstream, and ofstream objects. void open(const char *filename, ios::openmode mode);
seemasingh58377:
mark brainliest
Answered by
0
Answer: 20
Explanation: 2*8^1+4*8^0
= 16 + 4 = 20
Similar questions