Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- void main () {
- FILE* fp;
- int i=0, num;
- fp = fopen("primers.txt","r");
- if (fp) {
- fscanf(fp, "%d", &num);
- while(!feof(fp)) {
- printf("%d\t", num);
- fscanf(fp, "%d", &num);
- }
- fclose(fp);
- } else {
- printf("Fichero no abierto!\n\n");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement