Rewrote this program, making it simpler by converting the file to
a character list first.
Rewrote test.sml