FileIOException.py

this file uses a try except else statement to try open up a file to write some text. If an IOException occurs it prints the written error message but if successful it prints out a success statement and closes the file.