simple file reader/writer

it was needed for the test to pass.  i refactored the test to run two streams in series instead.