Write datastream csv.