ex 22.5.4 testing fget prior to doing my own implementation
ex 22.5.14 - my fgets works, passes tests, though it's uglier than King's
ex 22.5.14 - fgets cleaned up along Dr. King's lines