#include int main(argc, argv) int argc; char *argv[]; { register FILE *in, *out; char c; in = fopen(argv[1], "rb"); if (in == NULL) { printf("Error opening input file: '%s'\n", argv[1]); exit(1); } out = fopen(argv[2], "wb"); if (out == NULL) { printf("Error opening output file: '%s'\n", argv[2]); exit(1); } while (feof(in) == 0) { c = getc(in); if (c == '\r') continue; putc(c, out); } fclose(in); fclose(out); }