File method's in Biton, so there are so many different methods out there, and depending upon the input
argument, very different methods are the same methods may have different implications.
So here in this video, we shall be discussing different file methods in Python.
So here we are having some list of methods like we discussed, some of them at least, so this is the
method name and there is a description so close, close and open file, and it has no effect if the
file is already closed, detach, separate.
The underlying binary buffer from the text are your best and return it.
Next one is a file, a no return, an integer.
No, there is a file descriptor of the file.
So each and every file we need to get opened, then it will be accessed with some file descriptor number
so that number will be returned.
So using this method file A..
That is a file number.
We are having this flash floods, the right buffer of the file stream.
So whatever characters are there in the in the buffer, right buffer.
So they will be cleared.
Our next one is there is a two way.
So returns to the file stream is interactive.
So read in read at most in characters from the file.
Read till end of the file if it is a negative or none when having this readable returns.
True, if the file stream can be read from so that is a readable will be returning boolean.
So either it will return true or false.
So red line in is equal to minus one.
So read and return one line from the file and reads in that most invites if specified.
So that is the invites are there and this minus one is there.
So read and return one line from the file and read at the reading at most invites and if the N is specified
in the parameter.
We're having these red lines where in Israel, minus one, so read and return and list of lines from
the file and read in at most invites or characters if specified, then we're having this sick of upset
from Israel to sick underscores set.
So change the file position to offset bias in reference to from that is a stark current and end.
So that is a file point pointer will have some movement will have some progress depending upon the parameters.
Whatever we are passed next one is unthinkable returns true if the file stream supports random access.
So if we can go for the random accessing of the file content then it will return the output route so
it returns boolean.
So the next one is still returns according to file location.
So where is the where is the respective file pointer location to which location it is pointing to.
The current location will be returned here.
Trunked site is in one.
So this is the file stream to site bytes.
And if the site is not specified research to current location, we're having this writable returns.
True, if the files can be returned to so industry that having different functions of their methods
are that you can easily pause the video and go through them.
And obviously we shall we shall write some calls on them.
So here you see in previously we had red lines, so here that in that case we had any minus one.
But here is the end is a two point one.
So what are the respective changes?
We're having almost the same method, the same method.
Lists are there, but the input parameters are getting different.
So what is the changes respectively that has been depicted in this method?
And that description still returns the current file location.
So it's the same because we are not passing any parameter to that trunked Seijas in one.
So this is the file stream to sideswipes it.
The site is not specified.
It is to the current location.
So in this way, in this video, we have discussed different file methods available in Python.
Thanks for watching this video.