diff --git a/src/app/core_logic/responsable.c b/src/app/core_logic/responsable.c index 701a61c..d6eeefd 100644 --- a/src/app/core_logic/responsable.c +++ b/src/app/core_logic/responsable.c @@ -25,4 +25,23 @@ int chargementArticles(int tRef[], float tPoids[], float tVol[], float tPrix[], i++; } return i; +} + +void sauvegadArticles(int tRef[], float tPoids[], float tVol[], float tPrix[], float tLogique) +{ + int i; + FILE * fe; + fe = fopen("articles.txt","w"); + if ( fe == NULL ) + { + perror("fopen"); + return -1; + } + + for ( i = 0; i < tLogique; ++i) + { + fwritef(fe,"%d\t %.2f\t %.2f\t %.2f\n", ); + } + + fclose(fe); } \ No newline at end of file