1
00:00:01,360 --> 00:00:01,980
Hello everyone.

2
00:00:01,990 --> 00:00:08,070
So in this lesson we will learn what our streams so streams are actually your flow of data.

3
00:00:08,530 --> 00:00:13,150
So flow of data are called streams not the flow of data can be of two types.

4
00:00:13,150 --> 00:00:16,510
So first the flow of data can be coming through our program.

5
00:00:16,510 --> 00:00:21,270
And the second ways the flow of data might lead you to a destination.

6
00:00:21,280 --> 00:00:24,910
So basically this is your program.

7
00:00:24,910 --> 00:00:25,720
Now what can happen.

8
00:00:25,720 --> 00:00:31,140
So this is the stream coming in so stream is simply a flow of data.

9
00:00:31,510 --> 00:00:33,740
So stream is coming in to your program.

10
00:00:33,760 --> 00:00:40,180
And similarly the stream can go out and it can reach our destination.

11
00:00:40,490 --> 00:00:42,740
So now this is your program.

12
00:00:42,740 --> 00:00:49,190
So in how many ways we can take input so streams are actually can be used for two things.

13
00:00:49,190 --> 00:00:56,750
First taking input from the external source and second is giving output to the external source so external

14
00:00:56,750 --> 00:01:03,080
source can be key keyboard so we can take input from keyboard how we will take input we will take and

15
00:01:03,080 --> 00:01:04,420
producing C in.

16
00:01:04,550 --> 00:01:08,910
And similarly we can give output to a letter to a monitor.

17
00:01:09,170 --> 00:01:10,240
And how do we do that.

18
00:01:10,550 --> 00:01:13,660
I will use c out simple.

19
00:01:13,790 --> 00:01:16,780
Similarly what are the other ways of taking input.

20
00:01:16,790 --> 00:01:19,490
So basically you can take.

21
00:01:19,540 --> 00:01:21,660
So this is your network.

22
00:01:21,770 --> 00:01:23,950
So basically you can take input from the network.

23
00:01:23,960 --> 00:01:27,940
You can receive data from the network and you can send the data back to the network.

24
00:01:28,460 --> 00:01:29,720
Similarly it can happen.

25
00:01:29,730 --> 00:01:31,480
So let us consider a file.

26
00:01:31,880 --> 00:01:33,980
So this is your file where you can do so.

27
00:01:34,010 --> 00:01:41,250
Basically you can read data from file and similarly you can write data to a file so these all streams

28
00:01:41,830 --> 00:01:45,950
seems to simply the flow of data now basically.

29
00:01:45,960 --> 00:01:48,790
So there are two types of stream input output stream.

30
00:01:48,950 --> 00:01:51,350
So what is the meaning of input output stream.

31
00:01:52,490 --> 00:02:00,140
So the input stream is actually used to take data from the external source.

32
00:02:00,210 --> 00:02:06,480
And similarly the output stream is to send the data to the extra knows whose it is very simple.

33
00:02:06,480 --> 00:02:10,830
So this is called input output stream and it is off.

34
00:02:10,950 --> 00:02:17,130
It is integration of two types input stream to take data from the external source and output stream

35
00:02:17,130 --> 00:02:19,460
to send data to the external source.

36
00:02:19,470 --> 00:02:28,020
So in C++ this input output stream is actually implemented and the name of the class is actually a US.

37
00:02:28,110 --> 00:02:36,270
So the name of the classes IO is input output stream and this input output stream is categorized into

38
00:02:36,270 --> 00:02:37,350
two types.

39
00:02:37,410 --> 00:02:45,090
So first one is ice stream input stream and the name of the second classes or stream output stream.

40
00:02:46,250 --> 00:02:53,310
So this ice cream is actually input stream and this stream is actually output stream.

41
00:02:53,420 --> 00:02:56,170
So this is a glass ice stream is a glass.

42
00:02:56,180 --> 00:03:03,770
Similarly all stream is also a glass and see in so I remember seeing so scene is an object of ice cream

43
00:03:03,770 --> 00:03:09,870
glass and similarly C out is an object of the stream glass.

44
00:03:09,950 --> 00:03:17,510
So C out is an object of always steam glass output steam glass so similarly for taking input from a

45
00:03:17,510 --> 00:03:20,300
file for reading and writing to a file.

46
00:03:20,690 --> 00:03:28,880
I have glasses input file stream to read data from the file and similarly for writing data to a file.

47
00:03:28,880 --> 00:03:37,050
I have the class output file stream so this is input file stream and this is output file stream.

48
00:03:37,160 --> 00:03:37,790
Simple.

49
00:03:37,850 --> 00:03:45,370
So basically scene is used to take input from the keyboard and similarly see outward display the data

50
00:03:45,480 --> 00:03:48,280
to one wanted to simple.

51
00:03:48,280 --> 00:03:50,330
So here.

52
00:03:50,350 --> 00:03:52,510
So this is your monitor.

53
00:03:55,380 --> 00:03:56,340
So what is happening here.

54
00:03:56,370 --> 00:03:58,440
So this scene is an object of

55
00:04:01,490 --> 00:04:05,180
ice cream glass and put stream glass.

56
00:04:05,180 --> 00:04:10,280
And similarly this icy out is an object of always stream glass.

57
00:04:10,280 --> 00:04:18,630
Simple now these things iPhone keyboard and and so forth file the glass at the name of the classes at

58
00:04:18,940 --> 00:04:27,610
input file stream and output file stream so output file and stream so in the next video we will learn

59
00:04:28,240 --> 00:04:30,130
file handling in C++

60
00:04:33,430 --> 00:04:38,380
so next we do we will on this topic file handling in C++ so I will meet you in the next one.

61
00:04:38,570 --> 00:04:38,860
Bye.
