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
OK, so in this video, we will proceed and talk about a function called F Puth C, which is basically
a function that takes some character and a pointer to a file that is probably has been opened for writing
in this case.
OK, I modified it to take a file called My First File 2.0, the writing mode and open it up story.
These opening channel, let's call it inside a pointer called F.P..
And this is no longer relevant.
And now what we are going to do is to call this function file, put character and put a character inside
a given file.
So it looks like this f Putsy taking a character in this case it's H and putting it inside where the
FP is pointing to.
Then we will put it and then we will put why they will be put one after the other.
All right.
So just make sure you do not use something like this.
F would see and h because if you do that this way you will try to work with strings.
OK, if you use double quotes then we know that it represents a string.
So it basically will look like these behind the screen, behind the scenes.
Awesome.
So now let's build and run it and see what this program will give us using these F Putsy function.
So there you go.
OK, everything seems to be working correctly.
Let's now open up.
Where are the file was created here.
I specified just a and local local path to the file.
So it's the file inside of this project and it's going to be right here.
So here we have my first file to try to steal it, open it up and there you go.
You have the character H e and the character Y.
So the text here is.
Hi.
Hi.
Nice to meet you.
So, yeah, this is the second function.
Very interesting.
It looks kind of f getsy, but just now it works with writing to a file instead of reading and.
Yeah.
And just before we we finish up with this video, another important note, since I want you to become
more professional as you proceed.
We remember who is this SDD out, right?
You remember these one SDD out stand there and output from one of our previous videos.
So we said that it's just a pointer to the display, to the screen.
And if we want to display a character to the screen, we could simply use.
Right.
That's what we know so far.
We could simply use put cha right and basically to take some character and to put it to the screen.
Right.
Some character from here.
OK, good.
So let's yeah.
But we also know how to put some character to a file.
Right.
We know to use now Putsy.
And we can simply say that instead of using here inside of these F Putsy using some F.P., which is
a pointer to file, we will use, let's say I don't know, SDD out, which is a standard output and
we will see what will happen now.
So let's see.
And there you go.
The character a displayed on your console using the Pokhara function that took the character AI and
redirected it to the standard output, which in this case is the console application.
Is it clear so we can say that this function is kind of equivalent to put CHA and getting here some
character AI?
We can see that both of them do pretty much the same.
Right?
So yeah, this is it.
For the second function, we cover it up f getsy f Putsy and we are moving forward.
Good luck.
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.