Citationdidou2 scanf("%s",tmp);
path=tmp;
scanf("%s",tmp);
path1=tmp;
FILE *f=fopen(path,"r");
FILE *g=fopen(path1,"w");
Il me semble que le 2ème scanf écrase le résultat du premier dans tmp, donc
path et path1 auraient le même contenu, donc même fichier ouvert 2 fois ?
Ce serait plus prudent de déclarer ainsi :
char path[257];
char path1[25
Forum:
Développement