Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- main()
- {
- FILE *input, *output;
- char c;
- input = fopen("source.txt", "r");
- input = fopen("output.txt","w");
- while((c=fgetc(input))! =EOF)
- {
- if(c=='/')
- {
- c=fgetc(input);
- if(c=='/')
- {
- while((c=getc(input))! = '\n')
- {
- //
- }
- } else
- {
- fprintf(output,"/");
- }
- }
- fprintf(output,"%c",c);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement