finished code example in section1, chapter11, ReaderInputFromFile.java