Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <conio.h>
- #include <stdlib.h>
- FILE *zw;
- main()
- {
- char zp;
- zw=fopen("c:\\Pulpit\\Programo\\macierz1.txt","r");
- if(zw==NULL)
- printf("plik jest pusty, lub nie istnieje");
- while(zp!=EOF)
- {
- zp=fgetc(zw); // czytanie z pliku
- printf("%c",zp);
- }
- fclose(zw);
- getch();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement