Add option to read input from file.

Adds input file option, good suggestion.  I picked '-f' though [1],
although I have seen '-i' before.

[1] http://www.faqs.org/docs/artu/ch10s05.html