Type THead=Record
HeadDefine here
end;
TRecord=Record
RecordDefine Here
end;
Var
F:File;
H:THead;
Rec:TRecord;
sz:integer;
begin
...........
Blockread(F,H,SizeOf(H));
Blockread(F,Rec,SizeOf(TRecord),sz);
while sz=SizeOf(TRecord) do
begin
do something........
Blockread(F,Rec,SizeOf(TRecord),sz)