Welcome to this section where we're going to be
talking about file handling and believe it or not.
This is officially the beginning of the more advanced
topics on the Python programming because in here,
you're going to learn how you can write programs
that can create files and even modify them.
And perhaps even more importantly,
you're going to learn exactly how to handle file errors.
So say, for example, something happened in your program,
it didn't quite work out the way it was meant to work out.
You're going to learn exactly how you can modify or design your program in
such a way that these kinds of errors are handled in a professional manner.
So
this is going to be a very, very interesting section.
And of course, you're also going to learn the different types of methods
that we can apply to our files,
such as how you can read from a file or maybe even write
to a file or maybe even append or modify a particular file.
And of course, you're also going to learn about handling the file errors,
which I've talked about already
using the multiple except blocks. And also the finally statement as well. So
without wasting any more time,
let's jump into talking about file handling.