add method fputcsv for using settings class