REPETITION D'UNE FONCTION ....

Leparasite Messages postés 8 Date d'inscription samedi 28 octobre 2000 Statut Membre Dernière intervention 8 août 2002 - 8 août 2002 à 12:28
zeratul67 Messages postés 97 Date d'inscription mardi 9 avril 2002 Statut Membre Dernière intervention 11 mai 2008 - 8 août 2002 à 14:06
salut a tous .....

voila c simple j'aimerai qu cette fonction ce repete a l'infini :

FILE *fp,*fp2;
char tmp[256];
fp=fopen("c:\\test.txt","rb");
fp2=fopen("d:\\test.txt","wb");

int n;
{
n = fread(tmp,1,256,fp);
fwrite(tmp,1,n,fp2);
}while ( !feof(fp) );

fclose(fp);
fclose(fp2);

LE PARASITE

1 réponse

zeratul67 Messages postés 97 Date d'inscription mardi 9 avril 2002 Statut Membre Dernière intervention 11 mai 2008
8 août 2002 à 14:06
Si tu veux qu'elle se répête sur toute la longeur du fichier, tu peux l'inclure dans un do, qui se terminera à la fin de ton fichier.
0
Rejoignez-nous