Read Data function declared

The new exception has to be added for file input stream reading to work