Hello everyone.
So in this lesson we will learn what our streams so streams are actually your flow of data.
So flow of data are called streams not the flow of data can be of two types.
So first the flow of data can be coming through our program.
And the second ways the flow of data might lead you to a destination.
So basically this is your program.
Now what can happen.
So this is the stream coming in so stream is simply a flow of data.
So stream is coming in to your program.
And similarly the stream can go out and it can reach our destination.
So now this is your program.
So in how many ways we can take input so streams are actually can be used for two things.
First taking input from the external source and second is giving output to the external source so external
source can be key keyboard so we can take input from keyboard how we will take input we will take and
producing C in.
And similarly we can give output to a letter to a monitor.
And how do we do that.
I will use c out simple.
Similarly what are the other ways of taking input.
So basically you can take.
So this is your network.
So basically you can take input from the network.
You can receive data from the network and you can send the data back to the network.
Similarly it can happen.
So let us consider a file.
So this is your file where you can do so.
Basically you can read data from file and similarly you can write data to a file so these all streams
seems to simply the flow of data now basically.
So there are two types of stream input output stream.
So what is the meaning of input output stream.
So the input stream is actually used to take data from the external source.
And similarly the output stream is to send the data to the extra knows whose it is very simple.
So this is called input output stream and it is off.
It is integration of two types input stream to take data from the external source and output stream
to send data to the external source.
So in C++ this input output stream is actually implemented and the name of the class is actually a US.
So the name of the classes IO is input output stream and this input output stream is categorized into
two types.
So first one is ice stream input stream and the name of the second classes or stream output stream.
So this ice cream is actually input stream and this stream is actually output stream.
So this is a glass ice stream is a glass.
Similarly all stream is also a glass and see in so I remember seeing so scene is an object of ice cream
glass and similarly C out is an object of the stream glass.
So C out is an object of always steam glass output steam glass so similarly for taking input from a
file for reading and writing to a file.
I have glasses input file stream to read data from the file and similarly for writing data to a file.
I have the class output file stream so this is input file stream and this is output file stream.
Simple.
So basically scene is used to take input from the keyboard and similarly see outward display the data
to one wanted to simple.
So here.
So this is your monitor.
So what is happening here.
So this scene is an object of
ice cream glass and put stream glass.
And similarly this icy out is an object of always stream glass.
Simple now these things iPhone keyboard and and so forth file the glass at the name of the classes at
input file stream and output file stream so output file and stream so in the next video we will learn
file handling in C++
so next we do we will on this topic file handling in C++ so I will meet you in the next one.
Bye.