Hi and welcome back. In this part I will tell you about how to use file dot write method. It writes a string to the file and it does not return any value. Due to buffering the string may not actually show up in the file until the flush or close method is called. So let's demonstrate it. Hi, hello.
But no write f dot write. In bracket, write text, which you want to write in your file. And at last, right after close, if you not read after close, it will not show up ever not complete its task because of buffering I'll save this content and then the script as I told you, it does not have any return value so nothing's just appeared here. Let's check it out the route dot txt file hello world and welcome to this Python file handling tutorial. In this way, I tell you how to use F dot write and that in my next video I will go into tell you about more file object matters. Like See, tell truncate, etc.
So for till now, keep learning keep growing. Love Python and happy coding