Export Datat to file