I'm looking for an easier way to maintain a code that generate CSV file.
Currently, each line in the CSV file is written in the following way:
fprintf(pCsvFile,"%s,%s,%d,%d,%d",param->a, param->b, param->c, param->d, param->e);
In reality I have around 20 different values from different types that I'm writing in every CSV file row, and as you can guess its start getting really difficult to maintain the code (adding or removing parameters).
Is there any clever way to do it in C language? Thanks.
Aucun commentaire:
Enregistrer un commentaire