parent
e8044f9b0b
commit
001dcc5729
@ -0,0 +1,34 @@
|
|||||||
|
#include "main.h"
|
||||||
|
|
||||||
|
void chargeDonnees(int reference[], float weight[], float volume[], float unitPrice[], int clientID[], float cagnotte[], int suspended[])
|
||||||
|
{
|
||||||
|
chargeArticles(reference, weight, volume, unitPrice);
|
||||||
|
chargeClients(clientID, cagnotte, suspended);
|
||||||
|
}
|
||||||
|
|
||||||
|
void chargeArticles(int reference[], float weight[], float volume[], float unitPrice[])
|
||||||
|
{
|
||||||
|
FILE *article;
|
||||||
|
article = fopen("articles.txt","r");
|
||||||
|
if(article==NULL)
|
||||||
|
{
|
||||||
|
printf("ERREUR: Echec de l'ouverture en lecture de 'articles.txt'.\n");
|
||||||
|
exit(1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void chargeClients(int clientID[], float cagnotte[], int suspended[])
|
||||||
|
{
|
||||||
|
FILE *client;
|
||||||
|
client = fopen("clients.txt","r");
|
||||||
|
if(client==NULL)
|
||||||
|
{
|
||||||
|
printf("ERREUR: Echec de l'ouverture en lecture de 'clients.txt'.\n");
|
||||||
|
exit(1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void sauvegardeDonnees()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in new issue