File handling

Sometimes, a program might need to use data that is stored on our file system. To be able to do this, a program must open and read the files(s) from the file system.

Other times, we might want to generate reports for the results of some computations or operations within a program. The program should therefore be able to create and write files to the file system.

This section explain how this can be done in Python.