switch to streams in prep for handling stdin

Signed-off-by: Greg Dietsche <Gregory.Dietsche@cuw.edu>