All language subtitles for 2. What is a file [as a stream of bytes]

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,330 --> 00:00:09,420 All right, so in this video, what we are going to talk about is what is a file and in simple terms, 2 00:00:09,420 --> 00:00:16,920 a file is just as serious or Astrium, let's say, let's call it for now, is three of bytes, one after 3 00:00:16,920 --> 00:00:26,310 the other, usually stored on some non-volatile memory devices, such as your hard drive or SSD, some 4 00:00:26,310 --> 00:00:28,020 flash memory and so on. 5 00:00:29,040 --> 00:00:39,510 And these memory devices, these memory components will be used to write and read to and from OK, basically 6 00:00:39,510 --> 00:00:48,360 to work with files during this section and probably during your future projects when you will develop 7 00:00:48,360 --> 00:00:49,980 amazing applications. 8 00:00:50,870 --> 00:00:57,890 And in this tutorial, we will talk only about these type of files and not about different, let's say, 9 00:00:58,100 --> 00:01:05,450 complex types where files may be spread out to several areas are on the device and stuff like that. 10 00:01:05,540 --> 00:01:05,720 Okay. 11 00:01:05,730 --> 00:01:12,870 Will simply talk about some stream of bytes which will represent the data of the file. 12 00:01:14,270 --> 00:01:23,780 Just think of a file that we will speak about from this point on is some sequence of bytes that actually 13 00:01:23,780 --> 00:01:29,780 hold or store the data and the content of a given file. 14 00:01:29,780 --> 00:01:35,630 Some data that you want to represent, whether these will be like, I don't know, just a text file, 15 00:01:35,630 --> 00:01:40,880 an image file or let's say other files that we will also explore. 16 00:01:41,780 --> 00:01:48,140 And in this section, maybe in this section, maybe I will give you just the part of it. 17 00:01:48,140 --> 00:01:49,130 I'm not sure because. 18 00:01:50,910 --> 00:02:01,350 Yeah, there is a lot of things to cover up, but mainly mainly what we do categorise when learning 19 00:02:01,350 --> 00:02:03,600 files is basically two main types. 20 00:02:03,600 --> 00:02:10,320 The first one is the textual files and the second type is the binary files. 21 00:02:10,800 --> 00:02:14,280 And we will talk about different. 22 00:02:15,500 --> 00:02:20,930 Usages of text files and binary files, I'm not sure about binary files in this section. 23 00:02:21,260 --> 00:02:24,650 I will need to check it out because it is a little bit more complicated. 24 00:02:24,660 --> 00:02:32,390 Maybe you will start just with the textual files to simply give you some taste of how to work with files 25 00:02:32,390 --> 00:02:33,830 and basically binary. 26 00:02:33,860 --> 00:02:34,970 Maybe we'll add here. 27 00:02:34,970 --> 00:02:37,980 Maybe we'll adding some next section. 28 00:02:38,000 --> 00:02:43,510 Not sure about it at this moment, but yeah, so far, so good. 29 00:02:44,860 --> 00:02:54,400 And just do like to give you a little bit of visualization, let me draw something here and let me tell 30 00:02:54,400 --> 00:03:01,580 you that basically a file will be represented, as we just said, as a sequential stream of bytes. 31 00:03:01,930 --> 00:03:07,690 So if we will take a look at these memory, OK, so that's some memory that we have. 32 00:03:08,440 --> 00:03:13,930 This is the memory, let's say, of your hard drive, just as that as an example. 33 00:03:14,680 --> 00:03:24,570 And you will say that from these memory forward, let's say memory, I don't know, three, 200 till 34 00:03:24,580 --> 00:03:26,020 I don't know, four thousand. 35 00:03:26,410 --> 00:03:27,940 This will be OK. 36 00:03:27,940 --> 00:03:33,700 All the bytes in memory that will be occupied for your file. 37 00:03:33,850 --> 00:03:40,630 OK, so whatever you store here, OK, if you will decide to store here, I don't know an image. 38 00:03:40,630 --> 00:03:47,680 So there will be different representation than just storing some textural basic file where each byte 39 00:03:47,680 --> 00:03:49,930 is going to represent some character. 40 00:03:50,230 --> 00:03:56,860 OK, so but the general concept that you need to understand is that let's say we will have like everything 41 00:03:56,860 --> 00:04:03,670 represented for the file in zero, one, two, three and so on and so forth up until some and minus 42 00:04:03,670 --> 00:04:04,360 one index. 43 00:04:04,960 --> 00:04:09,520 And we will use it as the end of file. 44 00:04:10,000 --> 00:04:11,080 OK, marker. 45 00:04:12,000 --> 00:04:21,060 Something that will represent this area and with this market right here and this is the file represented 46 00:04:21,240 --> 00:04:28,230 and storing all the data relevant for your needs, do these file, whether it is going to be on the 47 00:04:28,230 --> 00:04:31,680 hard drive, the is the I don't know, or some flash memory. 48 00:04:32,960 --> 00:04:40,670 And once you start working with files, OK, first of all, what you will usually do is that you will 49 00:04:41,030 --> 00:04:45,660 attempt to start working with a file, you will try to open a file. 50 00:04:45,720 --> 00:04:53,270 OK, and then what will happen is that a sequential stream associated with that file will provide some 51 00:04:53,270 --> 00:04:54,890 communication channel. 52 00:04:55,210 --> 00:05:02,780 OK, there will be some communication channel between this given stream, these file and your running 53 00:05:02,780 --> 00:05:08,560 program, which is like this may not say there will be a running program. 54 00:05:08,570 --> 00:05:14,000 There will be like a region in memory that will be used for your file. 55 00:05:14,900 --> 00:05:21,380 And then when he wants, he will try to open a file in, it will hopefully be successful from your program 56 00:05:21,380 --> 00:05:28,490 to this file, there will be created some communication channel that will allow you to read or write 57 00:05:28,490 --> 00:05:29,890 based on your demands. 58 00:05:29,930 --> 00:05:30,320 OK. 59 00:05:31,160 --> 00:05:38,330 And to be honest, guys, the understanding of this concept of these communication channel, a file, 60 00:05:38,330 --> 00:05:40,990 a program is really crucial. 61 00:05:41,390 --> 00:05:44,210 There is no such usage in real life applications. 62 00:05:45,530 --> 00:05:53,420 I mean, there is so much usage in real life applications and developments with this communication channel 63 00:05:53,420 --> 00:06:00,590 between a stream of bytes and your running program that to be honest, you cannot even start to imagine. 64 00:06:00,750 --> 00:06:01,610 Or maybe you can. 65 00:06:02,420 --> 00:06:11,030 So what I want us to do in the next video, I would like us to talk about some examples of streams that 66 00:06:11,030 --> 00:06:19,610 are being used automatically when any new program is launched and some of them you've used, you've 67 00:06:19,610 --> 00:06:26,990 probably used so far in the previous sections and you didn't even notice that there was like different 68 00:06:26,990 --> 00:06:31,340 streams and streams for the input streams from the output. 69 00:06:31,460 --> 00:06:31,860 OK. 70 00:06:32,480 --> 00:06:35,940 And in the next video, I will show you exactly what I mean by that. 71 00:06:36,800 --> 00:06:39,590 So stay tuned and let's go. 7585

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