All right, now you should have a good understanding of the main methods
of file handling in Python and so I have a list of all the other modes here that you can
use for file handling. And so we did r and w and a. Now you also have these combinations.
So for instance r plus, what this should do is it opens file both for reading and
writing because you know, with r you can only read, and with w you can only write.
So let allows you to open for both reading and writing, and so this also w plus
it also opens a file both for reading and writing so we're talking about
reading and writing in the same session. So you open a file and before you close it
you can apply the write method between these two expressions and read method as well.
Now the difference between r plus and w plus is that with w plus
you can overwrite your existing file. But with r plus it doesn't overwrite
the existing file, but it places a pointer at the beginning of the file and then if
you write something then you'll write that text above the existing text and
we'll be using this in one of our applications, so you see how this comes in handy.
And lastly we have a plus and this will place your pointer at the end
of the file, so like in here if you were reading this and then you can append
things under that. So this make sure that you have all the possible combinations there
so that you can manipulate and adjust what you want to do, what you want to accomplish
in working with your files. Spend a few minutes trying this out and
if you don't understand anything just drop a question, and yeah we have one
more lecture to go, so see you there.