Split streams to different files