write file into cleanup results directory