All language subtitles for 12. Introducing EOF (End of File)

af Afrikaans
ak Akan
sq Albanian
am Amharic
ar Arabic
hy Armenian
az Azerbaijani
eu Basque
be Belarusian
bem Bemba
bn Bengali
bh Bihari
bs Bosnian
br Breton
bg Bulgarian
km Cambodian
ca Catalan
ceb Cebuano
chr Cherokee
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
ee Ewe
fo Faroese
tl Filipino
fi Finnish
fr French
fy Frisian
gaa Ga
gl Galician
ka Georgian
de German
el Greek
gn Guarani
gu Gujarati
ht Haitian Creole
ha Hausa
haw Hawaiian
iw Hebrew
hi Hindi
hmn Hmong
is Icelandic
ig Igbo
id Indonesian
ia Interlingua
ga Irish
it Italian
ja Japanese
jw Javanese
kn Kannada
kk Kazakh
rw Kinyarwanda
rn Kirundi
kg Kongo
ko Korean
kri Krio (Sierra Leone)
ku Kurdish
ckb Kurdish (Soranรฎ)
ky Kyrgyz
lo Laothian
la Latin
lv Latvian
ln Lingala
lt Lithuanian
loz Lozi
lg Luganda
ach Luo
lb Luxembourgish
mk Macedonian
mg Malagasy
ms Malay
ml Malayalam
mt Maltese
mi Maori
mr Marathi
mfe Mauritian Creole
mo Moldavian
mn Mongolian
my Myanmar (Burmese)
sr-ME Montenegrin
ne Nepali
pcm Nigerian Pidgin
nso Northern Sotho
no Norwegian
nn Norwegian (Nynorsk)
oc Occitan
or Oriya
om Oromo
ps Pashto
fa Persian
pl Polish
pt-BR Portuguese (Brazil)
pt Portuguese (Portugal)
pa Punjabi
qu Quechua
ro Romanian
rm Romansh
nyn Runyakitara
ru Russian
sm Samoan
gd Scots Gaelic
sr Serbian
sh Serbo-Croatian
st Sesotho
tn Setswana
crs Seychellois Creole
sn Shona
sd Sindhi
si Sinhalese
sk Slovak
sl Slovenian
so Somali
es Spanish
es-419 Spanish (Latin American)
su Sundanese
sw Swahili
sv Swedish
tg Tajik
ta Tamil
tt Tatar
te Telugu
th Thai
ti Tigrinya
to Tonga
lua Tshiluba
tum Tumbuka
tr Turkish
tk Turkmen
tw Twi
ug Uighur
uk Ukrainian
ur Urdu
uz Uzbek
vi Vietnamese
cy Welsh
wo Wolof
xh Xhosa
yi Yiddish
yo Yoruba
zu Zulu

Original subtitles

Well, hello there.

And in this video, we are going to talk about something that is called EAF or basically and of file.

So remember the backslash zero that was used for strings to indicate the end of a string?

So the Backslash Zero character was used to indicate the end of a particular string.

So something very similar to this concept will also apply for files.

We need a way to represent the end of a file and there is a special character that is being used for

exactly this task, just like the backslid zero four strings, we will use a special character called

EAF that indicates the end of a given file.

Usually the value of this special character is just minus one.

But please note that although there is some similarity, there is a major difference between the backslash

zero four strings in C and the EAF character used to indicate the end of the file.

And the difference is that a backslash zero is actually stored as part of the string.

OK, we've seen it as the last character.

But the EAF character at the end of final indicator is actually not store this part of the file.

The EAF character is basically not stored at the end of the file as the Backslash Zero does, OK?

It's simply just an indicator to the lower level system that this is it.

This is the end of the file.

All right.

And the reason for that is that EAF is simply some sort of ESP. fire to indicate to another layer.

We are not going there in these course, probably, but it is just an indicator to a lower level to

specify that we reached the end of these given file and we can basically make any conclusions, make

some conclusions out of it.

OK, that's much more advanced topic, but at least you should be aware with just the basic the overall

idea of working with end of files.

So simply said, we can't read all the characters of a particular file by using some wire loop and some

get s f getsy function until we reach a character that is equal to EAF.

I will show you a nice example in the next video.

And yeah, OK, so yeah.

So just remember that EAF will be represented as a character that specifies the end of the file.

But this character is not actually part of your given file because it is just an indicator to the lower

level system.

So yeah, this is it for this video.

Guys, I hope I made it very clear to you and.

Yeah.

So yeah.

Thank you so much for watching.

And now, just before we move on, one thing that I also want you to know is that there is also a function

that is called F EAF, which means file and the file and these function basically gets a pointer to

a file.

OK, you can see that here.

We will specify probably VFP, OK?

And it will tell us either the current position is the end of the file or not.

So in what situation it will be used.

So for example, you have like you can use the for you can use these function.

For example, you would like to know as long as let's remove it from here, as long as you didn't reach

the end of the file so you can specify it like this.

So file while while you haven't reached the end of the file.

So f youcef f o f f b so as long as you didn't reach the end of the file, you will be doing the body

of this loop.

In this case, I don't know.

I don't know what you want to write here.

Let's go like some code.

That's it.

OK, so these while Loop will specify, as long as you didn't reach the end of the file, keep on doing

some code.

And once you do reach the end of the while, the condition is going to be false and you will move out

of the while loop.

So thank you guys for watching Youcef F off.

That's it.

Until the next time by.

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