fit_res2csv function

Write fit results table to a csv file.