Updated FileIO class

made thrown exceptions the same across the two create methods.