Create TextIO.java

This code I didn't write myself. It came with the book which we used in several courses. I don't claim ownership for anything written in this file. It's a help tool that we used to make input easier in our earlier days with Java.