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 righty, so in this video, we are going to talk about the F put s function and these function works
similarly to the put s function on.
Just to remind you that in the strings section, usually we talk about the dysfunction that works like
this.
OK, so let's get it right here.
Let's say put s, put s and basically get some string and put it to the screen.
In this case, let's go.
Like, I don't know.
Hey man.
And put another string like this is.
This is Vlad from Alphatech, I don't know, something like this.
Okay, guys, so now let's see what will happen if we run these two lines of code.
So let's basically combing these lines out that they will not interfere with our without with our code.
Let's build and run it and see what will happen.
So, hey, man, this is Vlad from Alphatech.
So we got these two strings and we put them to our console application.
OK, so the Buddhist function was used to write strings to the screen.
And similarly, the F puts function that we are talking about right now will you will do pretty much
the same.
Instead of writing the strings to the console application to the screen, it will write them to some
file.
And that's the explanation for additional graphics that we have here.
Are these F OK, this letter F used to specify and we will put a string, OK, these protests, we will
put a string to some file, OK.
And the syntax will look like this.
We will specify the string.
Right, just like here and a pointer to the file where we want to redirect this information.
OK, so once again we provide a string as the first argument that the function simply specifying what
string we want to write to the file.
And as the second argument, we specify the pointer to the relevant file after it has been opened.
Right.
Like previously.
So it clear so far.
Any questions?
Good.
If you have any questions, feel free to ask them in the Q Nothing difficult at all actually are simply
as we've used put s when working with strings.
We will do the same with the output as function.
So let's see how it will look like.
So let's take it f put s f put s in here we will use FP and also here we will use.
F.P..
OK, so let's basically just copy it to the relevant place, and these part will be on comment.
I just want to show you what will happen.
So there you go.
There you go.
OK, so, hey, man, this is Vlad from Alphatech.
And previously we had we had something like this, OK?
It was like it put protest, put protest and without specifying the pointer to the file.
OK, awesome.
So why use both of them is because I want to show you something.
What's going on, what's happening, what is happening?
Let me see.
Oh, never mind.
It was just some small problem, my computer probably got tired by now.
So let's open up this folder of the project and see what it has.
Let me go like here and my first file for There we go.
Hey, man, this is Vlad from Alphatech.
And the question is, why aren't they similar?
So, hey, man, this is from Alphatech in a new line in here.
Everything is basically seems like just in one line.
OK, so why is that?
Why is that?
Let me explain to you.
So simply saying the F put s function does not add a backslash and by default, OK, doesn't add a backslash
and by default at the end of the string, as opposed to how it is being done using the put s function.
So here by default, whenever we use the put his function and then we used to put his function once
again, we can see that there is probably a backslash, an operation backslash and character being added
to the console application that indicates that we will use a new line.
And that's not something that we can see when we are using the F portus function.
OK, just remember that every time that you need to jump to the next line, it will not be done by default
and you will have to specify it explicitly.
So for example, here we will specify backslash N and now we will run it once again.
We will see that this does not interest me, but I'm interested in the file itself that has been created
here.
So let's see.
And there you go.
Hey man, this was blood from Alphatech, so.
Yeah.
Thank you guys for watching.
Pay close attention to the differences between even the subtle things and keep on practicing.
Keep on moving forward and you are bound to succeed.
I'll see you next time.
Thank you.
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.