Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- int main(int argc, char **argv) {
- FILE *in, *out;
- int c;
- if (argc != 3) exit(1);
- in = fopen(argv[1], "r");
- out = fopen(argv[2], "w");
- while ((c = fgetc(in)) != EOF) {
- if (c != '\n') fputc(c, out);
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement