Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <conio.h>
- int main()
- {
- FILE *test;
- int d,e;
- test=fopen("test.txt", "r+t");
- fscanf(test, "%d", &d);
- printf("%d\n", d);
- fscanf(test, "%d", &e);
- printf("%d\n", e);
- fclose(test);
- printf("Wynik to: %d" ,e+d);
- getch();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment