Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- #include<ctype.h>
- #include<stdlib.h>
- int main()
- {
- FILE *pf1,*pf2;
- int a;
- pf1=fopen("file1.txt","r");
- pf2=fopen("file2.txt","w");
- if(pf1)
- {
- do{
- a=fgetc(pf1);
- if(isgraph(a)) fputc(a,pf2);
- }while(a!=EOF);
- }
- fclose(pf1);
- fclose(pf2);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement