Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- int main (int argc, int argv[])
- {
- FILE *cible;
- char buff[11];
- int rang, i=0, valeur, j=0;
- if (cible=fopen("save_int.txt","r"))
- {
- while (!feof(cible))
- {
- fgets(buff,10,cible);
- printf(buff);
- i++;
- }
- printf("%d \n",i);
- fclose(cible);
- }
- else printf("Erreur à l'ouverture du fichier ! \n");
- return EXIT_SUCCESS;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement