#include #include int main(int argc, char *argv[]){ int fd1 = open(argv[1], O_RDONLY); int fd2 = open(argv[2], O_WRONLY|O_CREAT|O_TRUNC, 0666); int c; while (read(fd1, &c, 1)>0){ write(fd2, &c, 1); } close(fd1); close(fd2); return 0; }