read the first record from each input file

fread(&record1,length,1,f1_ptr);

fread(&record2,length,1,f2_ptr);