1 00:00:00,009 --> 00:00:01,809 Welcome to this section where we're going to be 2 00:00:01,820 --> 00:00:05,349 talking about file handling and believe it or not. 3 00:00:05,699 --> 00:00:09,079 This is officially the beginning of the more advanced 4 00:00:09,090 --> 00:00:12,529 topics on the Python programming because in here, 5 00:00:12,649 --> 00:00:15,670 you're going to learn how you can write programs 6 00:00:15,680 --> 00:00:18,989 that can create files and even modify them. 7 00:00:19,159 --> 00:00:21,190 And perhaps even more importantly, 8 00:00:21,409 --> 00:00:25,399 you're going to learn exactly how to handle file errors. 9 00:00:25,510 --> 00:00:28,670 So say, for example, something happened in your program, 10 00:00:28,819 --> 00:00:31,780 it didn't quite work out the way it was meant to work out. 11 00:00:32,020 --> 00:00:35,180 You're going to learn exactly how you can modify or design your program in 12 00:00:35,189 --> 00:00:40,939 such a way that these kinds of errors are handled in a professional manner. 13 00:00:40,950 --> 00:00:41,369 So 14 00:00:41,509 --> 00:00:45,790 this is going to be a very, very interesting section. 15 00:00:46,069 --> 00:00:50,020 And of course, you're also going to learn the different types of methods 16 00:00:50,139 --> 00:00:52,409 that we can apply to our files, 17 00:00:52,419 --> 00:00:56,020 such as how you can read from a file or maybe even write 18 00:00:56,029 --> 00:01:00,709 to a file or maybe even append or modify a particular file. 19 00:01:00,939 --> 00:01:04,190 And of course, you're also going to learn about handling the file errors, 20 00:01:04,199 --> 00:01:05,410 which I've talked about already 21 00:01:05,930 --> 00:01:12,459 using the multiple except blocks. And also the finally statement as well. So 22 00:01:12,620 --> 00:01:14,500 without wasting any more time, 23 00:01:14,629 --> 00:01:17,370 let's jump into talking about file handling.