SHARE
TWEET

Untitled

a guest Jul 22nd, 2017 107 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. int main (int argc, int argv[])
  5. {
  6.  
  7.   FILE *cible;
  8.   char buff[11];
  9.   int rang, i=0, valeur, j=0;
  10.  
  11.  
  12.   if (cible=fopen("save_int.txt","r"))
  13.     {
  14.  
  15.       while (!feof(cible))
  16.         {
  17.           fgets(buff,10,cible);
  18.           printf(buff);
  19.           i++;
  20.  
  21.         }
  22.  
  23.       printf("%d \n",i);
  24.       fclose(cible);
  25.     }
  26.  
  27.   else printf("Erreur à l'ouverture du fichier ! \n");
  28.  
  29.   return EXIT_SUCCESS;
  30. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top