Modification écriture fichier admis/attente

master
Alix JEUDI--LEMOINE 2 years ago
parent 0a61d47fcd
commit 99470a6584

@ -196,7 +196,7 @@ void traiterCandidatures(ListeCandidats liste, int nbCandidats, int nbCandidatsA
strcat(fNameAdmis, dept); strcat(fNameAdmis, dept);
strcat(fNameAdmis, "_Admis.don"); strcat(fNameAdmis, "_Admis.don");
fAdmis = fopen(fNameAdmis, "a"); fAdmis = fopen(fNameAdmis, "w");
if(fAdmis == NULL) { if(fAdmis == NULL) {
perror("fopen"); perror("fopen");
@ -229,7 +229,7 @@ void traiterCandidatures(ListeCandidats liste, int nbCandidats, int nbCandidatsA
strcat(fNameAttente, dept); strcat(fNameAttente, dept);
strcat(fNameAttente, "_Attente.don"); strcat(fNameAttente, "_Attente.don");
fAttente = fopen(fNameAttente, "a"); fAttente = fopen(fNameAttente, "w");
if(fAttente == NULL) { if(fAttente == NULL) {
perror("fopen"); perror("fopen");

Loading…
Cancel
Save