All language subtitles for 3. Examples of Stream already used (InputOutputError)

af Afrikaans
sq Albanian
am Amharic
ar Arabic
hy Armenian
az Azerbaijani
eu Basque
be Belarusian
bn Bengali
bs Bosnian
bg Bulgarian
ca Catalan
ceb Cebuano
ny Chichewa
zh-CN Chinese (Simplified)
zh-TW Chinese (Traditional)
co Corsican
hr Croatian
cs Czech
da Danish
nl Dutch
en English
eo Esperanto
et Estonian
tl Filipino
fi Finnish
fr French
fy Frisian
gl Galician
ka Georgian
de German
el Greek
gu Gujarati
ht Haitian Creole
ha Hausa
haw Hawaiian
iw Hebrew
hi Hindi
hmn Hmong
hu Hungarian Download
is Icelandic
ig Igbo
id Indonesian
ga Irish
it Italian
ja Japanese
jw Javanese
kn Kannada
kk Kazakh
km Khmer
ko Korean
ku Kurdish (Kurmanji)
ky Kyrgyz
lo Lao
la Latin
lv Latvian
lt Lithuanian
lb Luxembourgish
mk Macedonian
mg Malagasy
ms Malay
ml Malayalam
mt Maltese
mi Maori
mr Marathi
mn Mongolian
my Myanmar (Burmese)
ne Nepali
no Norwegian
ps Pashto
fa Persian
pl Polish
pt Portuguese
pa Punjabi
ro Romanian
ru Russian
sm Samoan
gd Scots Gaelic
sr Serbian
st Sesotho
sn Shona
sd Sindhi
si Sinhala
sk Slovak
sl Slovenian
so Somali
es Spanish
su Sundanese
sw Swahili
sv Swedish
tg Tajik
ta Tamil
te Telugu
th Thai
tr Turkish
uk Ukrainian
ur Urdu
uz Uzbek
vi Vietnamese
cy Welsh
xh Xhosa
yi Yiddish
yo Yoruba
zu Zulu
or Odia (Oriya)
rw Kinyarwanda
tk Turkmen
tt Tatar
ug Uyghur
Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated: 1 00:00:00,890 --> 00:00:07,700 So in this video will just demonstrate and give you I will give you some examples of streams that are 2 00:00:07,700 --> 00:00:12,530 being used automatically whenever a new program is being launched. 3 00:00:12,580 --> 00:00:21,390 OK, so basically show you how things were done so far and you haven't even noticed. 4 00:00:21,890 --> 00:00:26,900 So let's start and let's say that we have like I don't know, we have this keyboard. 5 00:00:27,140 --> 00:00:27,530 Right? 6 00:00:27,530 --> 00:00:30,970 We have these nice little keyboard right here. 7 00:00:30,980 --> 00:00:34,700 OK, sorry for my drawing specialties. 8 00:00:34,700 --> 00:00:39,100 So this will be the key word, keyboard, keyboard. 9 00:00:39,590 --> 00:00:41,090 This will be the keyboard. 10 00:00:41,510 --> 00:00:44,060 And here we will have some display. 11 00:00:44,060 --> 00:00:45,710 I don't know, something like that. 12 00:00:46,640 --> 00:00:47,510 Some screen. 13 00:00:49,700 --> 00:00:55,970 And we also have what do we have, we have something like that, we have our program. 14 00:00:57,450 --> 00:01:05,760 So that's the program you've written, your main function and you are going to run it and we are going 15 00:01:05,760 --> 00:01:10,830 to see what streams are associated with the program and the screen itself. 16 00:01:11,850 --> 00:01:18,540 And the first thing that I want to start talking about is let's write it right here, is the standard 17 00:01:19,200 --> 00:01:21,570 standard input. 18 00:01:23,400 --> 00:01:32,250 All right, so the standard input and this is basically a pointer to your keyboard and the things that 19 00:01:32,250 --> 00:01:37,900 you type in from these keyboard by pressing this one, and after that, this one and this one and so 20 00:01:37,920 --> 00:01:45,780 on, these things that you type in from your keyboard that are being read by this pointer, by this 21 00:01:45,780 --> 00:01:54,240 standard, the input pointer, or simply saying, let's say that our computer has an associated input 22 00:01:54,240 --> 00:01:56,320 stream, let's make it like this, OK? 23 00:01:56,340 --> 00:01:59,130 So this will be some input. 24 00:02:00,070 --> 00:02:01,300 Input stream. 25 00:02:02,390 --> 00:02:10,730 OK, and input stream of bytes, for example, and this stream will basically hold all the characters 26 00:02:10,730 --> 00:02:16,070 you've typed from the keyboard before, it's being read by your program. 27 00:02:16,460 --> 00:02:24,140 OK, so these characters you're going to type like this, c, d, e, s and so on and so forth are going 28 00:02:24,140 --> 00:02:30,720 to be inserted inside of this input stream in some sort of a Q structure, OK? 29 00:02:30,740 --> 00:02:35,470 So it will be like a Q structure structure. 30 00:02:36,440 --> 00:02:42,680 So there will be like a character, a C, a character, a D, a character is there and so on and so 31 00:02:42,680 --> 00:02:43,280 forth. 32 00:02:43,280 --> 00:02:44,270 Some space. 33 00:02:44,270 --> 00:02:46,580 And basically you got the idea. 34 00:02:48,600 --> 00:02:56,790 And then basically every character that you that you've entered using these keyboard is being passed, 35 00:02:56,820 --> 00:03:06,750 these IQ and then using your program, OK, you will be able to access these IQ using some SDD in remember 36 00:03:06,750 --> 00:03:15,930 these one SDD input, SDD input, standard input, you will be able to access these IQ from your program. 37 00:03:16,940 --> 00:03:24,520 And basically, you're going to read the characters from there, either it's going to be one by one, 38 00:03:25,010 --> 00:03:31,760 well, two at a time and so on and so forth, even it's going even if it's going to use like the famous 39 00:03:32,060 --> 00:03:34,640 caniff function that you're familiar. 40 00:03:34,800 --> 00:03:35,180 Right. 41 00:03:35,600 --> 00:03:38,840 So you're going to read different data from these. 42 00:03:38,840 --> 00:03:46,610 Q And to basically translate these data based on the data type that you want to read and stories in 43 00:03:46,610 --> 00:03:48,500 different variables, for example. 44 00:03:49,160 --> 00:03:51,920 OK, so I hope that's clear. 45 00:03:51,950 --> 00:03:54,860 Very important to understand this concept. 46 00:03:55,920 --> 00:04:03,840 And also something that emphasizes the usage of KIU, let's say, for example, that you're typing something 47 00:04:03,840 --> 00:04:04,990 using your keyboard. 48 00:04:05,010 --> 00:04:11,950 I just want to show you that these things are getting inserted in a sort of a Q one after the other. 49 00:04:12,570 --> 00:04:18,360 So if you have some form to feel right, some form that you have to feel, so you type down your first 50 00:04:18,360 --> 00:04:24,930 name, your last name, but in the middle of the process, your program getting stuck in you like you 51 00:04:24,930 --> 00:04:28,410 type everything from the keyboard, but you don't see the result yet. 52 00:04:28,770 --> 00:04:33,300 It's getting stuck for one, two seconds and then you're going to see, like everything written to the 53 00:04:33,300 --> 00:04:37,450 screen just the way you inserted it using the keyboard. 54 00:04:37,510 --> 00:04:41,810 OK, so that's also where the key you think is involved. 55 00:04:42,270 --> 00:04:43,500 So I hope that's clear. 56 00:04:43,500 --> 00:04:44,010 If not. 57 00:04:44,940 --> 00:04:47,320 Please feel free to ask any questions that you need. 58 00:04:47,460 --> 00:04:48,630 We're here to help. 59 00:04:49,970 --> 00:04:53,840 And now let's move on to where is it, where is it? 60 00:04:54,500 --> 00:04:59,440 Let's move on to the standard output and we stand there and output. 61 00:04:59,610 --> 00:05:01,850 OK, so this was the first one stand. 62 00:05:01,850 --> 00:05:06,500 There are the input and we have like, let me read it and let me remove it standard. 63 00:05:07,440 --> 00:05:10,140 Standard output. 64 00:05:12,640 --> 00:05:20,080 So they stand there and the output is basically also a pointer and these pointer points, where do the 65 00:05:20,080 --> 00:05:28,360 screen OK, and these pointer may provide different capabilities for you to display different messages 66 00:05:28,360 --> 00:05:29,500 on this screen. 67 00:05:29,740 --> 00:05:34,690 OK, so from your program, you're going to try running different. 68 00:05:35,630 --> 00:05:43,010 Operations to display something to the screen, but here you will have like an output stream output 69 00:05:43,010 --> 00:05:43,550 stream. 70 00:05:45,110 --> 00:05:54,860 That behind the scenes, when you used like printf and so on and so forth, you used it to display different 71 00:05:54,860 --> 00:05:59,600 messages that passed through these outward stream from your program. 72 00:06:00,700 --> 00:06:09,400 To the screen off your, let's say, console application console app into display different values right 73 00:06:09,400 --> 00:06:09,830 there. 74 00:06:10,210 --> 00:06:12,240 OK, so that's the output stream. 75 00:06:12,760 --> 00:06:15,600 And also we have what do we have? 76 00:06:16,120 --> 00:06:21,100 We also have something that is called let me droid right here like that. 77 00:06:21,640 --> 00:06:25,590 OK, so we have something that is called the standard error. 78 00:06:25,770 --> 00:06:33,550 OK, so the third one is Standard Steane, the third system, Dand. 79 00:06:34,420 --> 00:06:34,850 Error. 80 00:06:35,650 --> 00:06:43,090 OK, basically, that's the third one that we are going to discuss in this video and simply saying this 81 00:06:43,090 --> 00:06:47,410 is a pointer also to the screen, another pointer to the screen. 82 00:06:47,650 --> 00:06:57,100 And and it is usually used to write different error messages to your screen without letting you specify 83 00:06:57,100 --> 00:06:57,520 anything. 84 00:06:57,520 --> 00:07:02,230 So you will simply it is simply done kind of automatically behind the scenes. 85 00:07:02,260 --> 00:07:08,170 OK, so this is related to the error and it's used to simply show you that. 86 00:07:09,280 --> 00:07:13,870 There is some problem in your code or some bugs are on. 87 00:07:14,840 --> 00:07:15,830 Something else. 88 00:07:16,130 --> 00:07:22,580 So on and so forth, OK, so output stream is the basic that you use from your program to display different 89 00:07:23,060 --> 00:07:30,620 things on the screen and understand there are there are usually used without you specifying it simply, 90 00:07:30,920 --> 00:07:38,630 explicitly is being used implicitly to specify that some errors have been occurred. 91 00:07:39,970 --> 00:07:47,890 And yeah, so these were the standard sources for input and output information that we've used so far. 92 00:07:48,050 --> 00:07:57,720 OK, the Ezzedine was used as an input source, DSD out and the error were used as output sources. 93 00:07:58,180 --> 00:08:04,210 And now what we are going to learn about files is basically something very, very interesting. 94 00:08:04,280 --> 00:08:10,290 OK, so we can see that so far we've read the information. 95 00:08:10,300 --> 00:08:11,980 OK, that's our program. 96 00:08:12,310 --> 00:08:18,850 We've been reading the information from the keyboard and we've been plotting the information, some 97 00:08:18,850 --> 00:08:22,870 information from the program to the screen to the console application. 98 00:08:23,420 --> 00:08:30,280 So we are going basically to modify it a little bit and say that let's instead of reading from information 99 00:08:30,280 --> 00:08:35,170 from the keyboard, we may read information from some file. 100 00:08:35,200 --> 00:08:38,560 OK, so there will be some file with some text inside of it. 101 00:08:38,890 --> 00:08:44,350 And we are going to configure our program to read information from this file. 102 00:08:44,910 --> 00:08:53,320 OK, just like we've configured it to read information from the keyboard and inserted like key keystrokes 103 00:08:53,410 --> 00:08:54,260 after another. 104 00:08:55,000 --> 00:08:57,370 So now we are going to read from the file. 105 00:08:57,540 --> 00:09:01,420 OK, so we are going to read from files. 106 00:09:01,970 --> 00:09:07,270 OK, just different functions, but the concept is very, very similar. 107 00:09:07,630 --> 00:09:14,230 And it's very important for for you to understand clearly that your program can be configured to read 108 00:09:14,230 --> 00:09:22,570 from the keyboard or from different files and also in a similar way, instead of plotting all the information 109 00:09:22,930 --> 00:09:24,200 just by default. 110 00:09:24,220 --> 00:09:25,960 Let's go live for now to the screen. 111 00:09:26,440 --> 00:09:32,530 We may also plot information or write to a file. 112 00:09:32,750 --> 00:09:38,680 OK, so instead of writing to some console application, we will be able to write information to some 113 00:09:38,680 --> 00:09:46,840 file that these file will be later on stored in some non-volatile memory device. 114 00:09:47,110 --> 00:09:52,760 And we will be able then to read it once again and work with it and so on and so forth. 115 00:09:53,530 --> 00:09:56,590 So that's basically everything you have to understand. 116 00:09:56,620 --> 00:10:02,800 So far, the streams, how you manipulate them, where you read this information from, where do you 117 00:10:02,800 --> 00:10:06,150 write the information to, and so on and so forth. 118 00:10:06,640 --> 00:10:12,790 And in this section we will see basically we will focus on these files, how to read from them, how 119 00:10:12,790 --> 00:10:19,030 to write to them, different types of operations on files, because this part right here with working 120 00:10:19,030 --> 00:10:24,790 with keyboards and screen, it will also accompany this section. 121 00:10:24,790 --> 00:10:29,290 But these things will not be the main focus for this section. 122 00:10:29,290 --> 00:10:36,160 In this section, we will focus on working with files, different functions, syntax usage, what happens 123 00:10:36,160 --> 00:10:43,230 behind the scenes, what happens in the level and the level of the bytes and so on and so forth. 124 00:10:43,840 --> 00:10:46,030 So I hope you like this video. 125 00:10:46,030 --> 00:10:47,380 I hope you enjoyed it. 126 00:10:47,710 --> 00:10:48,490 And. 127 00:10:49,730 --> 00:10:52,220 As always, thank you so much for watching. 128 00:10:52,250 --> 00:10:53,550 Keep on practicing. 129 00:10:53,660 --> 00:10:54,860 Keep on working hard. 130 00:10:55,130 --> 00:11:00,160 My name is Vlad, this is Alphatech and I will see you in the next videos. 131 00:11:00,350 --> 00:11:00,980 Bye bye. 13272

Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.