In our previous Python tutorial, you have learned how to Import CSV File into MongoDB using Python. In this tutorial, you will learn about File handling in Python.
The files are widely used in to store data permanently in web application. Python provides us with an important feature for reading data from the file and writing data into a file. It has built-in function read() and write() to perform operations with files.