sandra771 a écrit :
 
 Non, c'était bien un nombre de bits. J'ai testé, ça a l'air de bien marché.
   Voilà  en gros les lignes de mon code:
   FILE      *fic_in, *fic_raw;
 int        K=21504;
 char      ligne[512];
 char      file_path[50];
   fic_in = fopen(file_path,"r" );  /* file_path le path du fichier */
   if (fic_in == NULL)
   {
     }
   fic_raw = fopen(file_path,"w" );  /* file_path le path du fichier */
   if (fic_raw == NULL)
   {
  printf("Error when openning file %s\n", fic_raw);
   }
       fseek(fic_in, K, SEEK_SET);
   while(fgets( ligne , 512, fic_in ) != NULL) {
    fprintf(fic_raw,"%s", ligne);
   }
     fclose(fic_in);
   fclose(fic_raw);
   |