Rewrote both file i/o classes to have a common BaseFileIo class.