this is what i've been thinking..



char buffer[256];
FILE *fp;
FILE *fw;

fp = fopen("read.txt", "r");
fw = fopen("write.txt", "w");