Create file+exception.py

This code is to cover File and Exception handling on files.