Extract message stream to separate file