append the rest of
f2
to
f3
while(fread(&record2,length,1,f2_ptr) != 0)
fwrite(&record2,length,1,f3_ptr);