We have so far created programs in Python that accept the input, manipulate it and display the output. But that output is available only during the execution of the program and input is to be entered through the keyboard. This is because the variables used in a program have a lifetime that lasts till the time the program is under execution. That's why we need files that can store inputs and outputs for a program so that we don't need to enter the data manually again and again.
So, in this class, we have begun with the file handling in Python, in which we have mainly discussed:
Introduction to files
Types of files:
Text file
Binary file
Opening a file using open() function
access modes while opening a file
closing a file
+timestamps:
00:00 - Introduction to files
06:02 - Types of files:
07:34 - Text file
13:06 - Binary file
16:49 - Opening a file using open() function
23:28 - access modes while opening a file
30:02 - closing a file