save affiliates in affiliate file