explain the different methods of nopening a file in C++
Answers
Answered by
0
Answer:
In C++, a file is opened by linking it to a stream. There are three types of streams: input, output and input/output. To open an input stream you must declare the stream to be of class ifstream. To open an output stream, it must be declared as class ofstream.
Explanation:
Similar questions