windows has API's to copy a file.But i think you are trying to do it through c file operations. So i am giving a small example how to do it,
FILE *f1,*f2;
f1=fopen("D:\\Users\\Dharmaraj\\RESUME.doc","rb");
f2 = fopen("D:\\Users\\Dharmaraj\\RESUME_Copy.doc", "wb");
fseek(f1, 0, SEEK_END);
int size = ftell(f1);
fseek(f1, 0, SEEK_SET);
unsigned char *buf = new unsigned char[size];
fread(buf, sizeof(unsigned char), size, f1);
fwrite(buf, sizeof(unsigned char), size, f2);
You can use normal EOF checking with these type of files.since they are not normal text files.But the above code will work for any file.