EpoK a écrit :
 
 vala now ca met ds un fichier ^^ mais ca fini toujour pas tout seul  
  
  Code :
 - #include <string.h>
 - #include <stdio.h>
 - void vider(char* p);
 - main(void) {
 - 	FILE * pFile;
 - 	FILE * export;
 - 	char p[254];
 - 	pFile = fopen ("new.txt" , "r" );
 - 	export = fopen ("sort.txt" , "w" );
 - 	fgets (p , 254 , pFile);
 - 	while(p!=NULL) {
 - 	if(strstr(p,"Enable" ))
 -   fputs (p , export);
 - 	fgets (p , 254 , pFile);
 - 	}
 - }
 
  |  
 
 
   |