File and stream concatenation the right way.