www.geeksforgeeks.org/file-handling-c-classes/
2 Users
0 Comments
19 Highlights
1 Notes
Tags
Top Highlights
The sequence of bytes given as input to the executing program and the sequence of bytes that comes as output from the executing program are called stream
Modes :
File handling is used to store data permanently in a computer. Using file handling we can store our data in secondary memory (Hard disk).
In other words, streams are nothing but the flow of data in a sequence.
These include ifstream, ofstream and fstream classes.
These classes are derived from fstream and from the corresponding iostream class.
istream:-
ios:-
ostream
file in any program that uses files.
ifstream:-
ofstream
fstream
base class
This class contains the necessary facilities that are used by all the other derived classes for input and output operations.
input stream.
extraction operator(>>) is overloaded in this class to handle input streams from files to the program execution.
streambuf
fstreambase
Glasp is a social web highlighter that people can highlight and organize quotes and thoughts from the web, and access other like-minded people’s learning.