Python File Handling

Python File Handling Part 1

File handling is one of the important feature in programming languages. Python provides a way to handle(read, write & modify) both text files as well as binary files. This tutorial will cover open() function in detail.

➠ There are various functions available in Python for File handling. Click the function to get more detail about that function.
Open: The open() function takes two parameters i.e. filename and mode. Out of the 2 parameters, filename is mandatory parameter and mode is optional parameter. There are 2 variations of open() function and their syntax are

****Visit File Handling part 2 for more functions