append it to
f3
fwrite(&record1,length,1,f3_ptr);