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
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.