Macro-ise the reading/writing of streams.