Afrikaans
Akan
Albanian
Amharic
Arabic
Armenian
Azerbaijani
Basque
Belarusian
Bemba
Bengali
Bihari
Bosnian
Breton
Bulgarian
Cambodian
Catalan
Cebuano
Cherokee
Chichewa
Chinese (Simplified)
Chinese (Traditional)
Corsican
Croatian
Czech
Danish
Dutch
English
Esperanto
Estonian
Ewe
Faroese
Filipino
Finnish
French
Frisian
Ga
Galician
Georgian
German
Greek
Guarani
Gujarati
Haitian Creole
Hausa
Hawaiian
Hebrew
Hindi
Hmong
Icelandic
Igbo
Indonesian
Interlingua
Irish
Italian
Japanese
Javanese
Kannada
Kazakh
Kinyarwanda
Kirundi
Kongo
Korean
Krio (Sierra Leone)
Kurdish
Kurdish (Soranรฎ)
Kyrgyz
Laothian
Latin
Latvian
Lingala
Lithuanian
Lozi
Luganda
Luo
Luxembourgish
Macedonian
Malagasy
Malay
Malayalam
Maltese
Maori
Marathi
Mauritian Creole
Moldavian
Mongolian
Myanmar (Burmese)
Montenegrin
Nepali
Nigerian Pidgin
Northern Sotho
Norwegian
Norwegian (Nynorsk)
Occitan
Oriya
Oromo
Pashto
Persian
Polish
Portuguese (Brazil)
Portuguese (Portugal)
Punjabi
Quechua
Romanian
Romansh
Runyakitara
Russian
Samoan
Scots Gaelic
Serbian
Serbo-Croatian
Sesotho
Setswana
Seychellois Creole
Shona
Sindhi
Sinhalese
Slovak
Slovenian
Somali
Spanish
Spanish (Latin American)
Sundanese
Swahili
Swedish
Tajik
Tamil
Tatar
Telugu
Thai
Tigrinya
Tonga
Tshiluba
Tumbuka
Turkish
Turkmen
Twi
Uighur
Ukrainian
Urdu
Uzbek
Vietnamese
Welsh
Wolof
Xhosa
Yiddish
Yoruba
Zulu
All right, so in this video, what we are going to talk about is what is a file and in simple terms,
a file is just as serious or Astrium, let's say, let's call it for now, is three of bytes, one after
the other, usually stored on some non-volatile memory devices, such as your hard drive or SSD, some
flash memory and so on.
And these memory devices, these memory components will be used to write and read to and from OK, basically
to work with files during this section and probably during your future projects when you will develop
amazing applications.
And in this tutorial, we will talk only about these type of files and not about different, let's say,
complex types where files may be spread out to several areas are on the device and stuff like that.
Okay.
Will simply talk about some stream of bytes which will represent the data of the file.
Just think of a file that we will speak about from this point on is some sequence of bytes that actually
hold or store the data and the content of a given file.
Some data that you want to represent, whether these will be like, I don't know, just a text file,
an image file or let's say other files that we will also explore.
And in this section, maybe in this section, maybe I will give you just the part of it.
I'm not sure because.
Yeah, there is a lot of things to cover up, but mainly mainly what we do categorise when learning
files is basically two main types.
The first one is the textual files and the second type is the binary files.
And we will talk about different.
Usages of text files and binary files, I'm not sure about binary files in this section.
I will need to check it out because it is a little bit more complicated.
Maybe you will start just with the textual files to simply give you some taste of how to work with files
and basically binary.
Maybe we'll add here.
Maybe we'll adding some next section.
Not sure about it at this moment, but yeah, so far, so good.
And just do like to give you a little bit of visualization, let me draw something here and let me tell
you that basically a file will be represented, as we just said, as a sequential stream of bytes.
So if we will take a look at these memory, OK, so that's some memory that we have.
This is the memory, let's say, of your hard drive, just as that as an example.
And you will say that from these memory forward, let's say memory, I don't know, three, 200 till
I don't know, four thousand.
This will be OK.
All the bytes in memory that will be occupied for your file.
OK, so whatever you store here, OK, if you will decide to store here, I don't know an image.
So there will be different representation than just storing some textural basic file where each byte
is going to represent some character.
OK, so but the general concept that you need to understand is that let's say we will have like everything
represented for the file in zero, one, two, three and so on and so forth up until some and minus
one index.
And we will use it as the end of file.
OK, marker.
Something that will represent this area and with this market right here and this is the file represented
and storing all the data relevant for your needs, do these file, whether it is going to be on the
hard drive, the is the I don't know, or some flash memory.
And once you start working with files, OK, first of all, what you will usually do is that you will
attempt to start working with a file, you will try to open a file.
OK, and then what will happen is that a sequential stream associated with that file will provide some
communication channel.
OK, there will be some communication channel between this given stream, these file and your running
program, which is like this may not say there will be a running program.
There will be like a region in memory that will be used for your file.
And then when he wants, he will try to open a file in, it will hopefully be successful from your program
to this file, there will be created some communication channel that will allow you to read or write
based on your demands.
OK.
And to be honest, guys, the understanding of this concept of these communication channel, a file,
a program is really crucial.
There is no such usage in real life applications.
I mean, there is so much usage in real life applications and developments with this communication channel
between a stream of bytes and your running program that to be honest, you cannot even start to imagine.
Or maybe you can.
So what I want us to do in the next video, I would like us to talk about some examples of streams that
are being used automatically when any new program is launched and some of them you've used, you've
probably used so far in the previous sections and you didn't even notice that there was like different
streams and streams for the input streams from the output.
OK.
And in the next video, I will show you exactly what I mean by that.
So stay tuned and let's go.
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.