Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- #include <ctype.h>
- int main()
- {
- FILE *fPointer;
- fPointer = fopen("test.txt","w");
- fprintf(fPointer,"Ova e test za da vidime sedum osum devet deset.\nDali ke raboti nasata programa.\nAko raboti toa e super six seven eight nine ten!");
- fclose(fPointer);
- FILE *fPointer1;
- fPointer1 = fopen("test.txt","r");
- char ch;
- while((ch=fgetc(fPointer1))!=EOF)
- {
- if(isalpha(ch))
- {
- printf("%c",ch);
- }
- if(ch==" ")
- {
- continue;
- }
- if(ch=='\n')
- {
- printf("\n");
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment