Write Good and Bad data to separate files