codice:#include <stdio.h> #include <stdlib.h> int main() { FILE *i,*o; char buff, sorg[99], dest[99]; printf("File da Copiare : "); scanf("%s", sorg); printf("Nuovo File : "); scanf("%s", dest); if( ! (o = fopen(sorg, "rb")) ) { printf("Sorgente non trovato\nOperazione annullata\n\a"); system("pause"); return 1; } i = fopen(dest, "wb"); while (1) { if( feof(o) ) break; fread(&buff, sizeof(char), 1, o); fwrite(&buff, sizeof(char), 1, i); } fclose(i); fclose(o); return 0; }