Added file handling class

Created class to access files and handle possible exceptions.