9. Files and I/O

Basic Inputs & Outputs (or I/O) operations are to take the input from the user and send the output to the user's screen. To handle a file is the task of basically opening/creating a file, reading or making changes and then closing the file. Basic I/O and File operations are very general when working with a project. In this chapter, we'll take a look at three built-in functions for handling these operations and the with statement which is very useful for file handling purposes. Later we'll check Context Management which is a way to add the with statement support to custom objects. Alright.