My computer sir is telling to …

CBSE, JEE, NEET, CUET
Question Bank, Mock Tests, Exam Papers
NCERT Solutions, Sample Papers, Notes, Videos
Related Questions
Posted by Priya Shukla 1 year, 6 months ago
- 1 answers
Posted by Syedali Fathima 1 year, 6 months ago
- 1 answers
Posted by Hanni Pham 1 year, 5 months ago
- 1 answers
Posted by Hanni Pham 1 year, 5 months ago
- 0 answers
Posted by Prawar Narang 1 year, 7 months ago
- 1 answers
Posted by Kandeepan Jothivel 1 year, 7 months ago
- 2 answers

myCBSEguide
Trusted by 1 Crore+ Students

Test Generator
Create papers online. It's FREE.

CUET Mock Tests
75,000+ questions to practice only on myCBSEguide app
myCBSEguide
Meghna Thapar 5 years, 2 months ago
Accessing a binary file from a C++ program (by not using the old C functions) requires firstly attaching a stream variable to the file. The usual stream classes ofstream (output file stream) and ifstream (input file stream) are still the types of streams to use. A an additional type called an fstream is provided which allows for files that can be written to and read from if this is a desirable property (in the design of database type programs, this is often the case).
Before any operation can take place on a file, it of course must be <i>opened</i>, and when you are finished with the file, it should be closed to avoid loss of data.
Opening a Stream
0Thank You