Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <string.h>
- int main ()
- {
- char s[80];
- int c, flag;
- FILE *in;
- FILE *out;
- in=fopen("in.txt", "r");
- if (in==0)
- {
- fclose (in);
- return -1;
- }
- out=fopen("out.txt", "w");
- if (out==0)
- {
- fclose (in);
- fclose (out);
- return -1;
- }
- while ((c = fgetc(in))&&(c!=EOF))
- {
- if (c=='/')
- {
- c=fgetc(in);
- while (c!='/')
- {
- c=fgetc(in);
- }
- continue;
- }
- fputc (c, out);
- }
- fclose (out);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement