var
 TRecFile:file of TRecKind;
begin
 if Not FileExists('webcfg.dat') then
  begin
   Assignfile(TRecfile,'webcfg.dat');
   rewrite(TRecfile);
  end
  else
  begin
   Assignfile(TRecfile,'webcfg.dat');
   Reset(TRecfile);
  end;
   Write(TRecfile,rec);  //Rec:TRecKind;  已经有值了
   closefile(TRecfile);
 end;我想要的是每次执行这段程序的时候都把rec写到webcfg.dat文件中去,但是不覆盖以前webcfg.dat的rec型内容而是添加到以前的记录的尾部,使得webcfg.dat文件具有多个TRecKind型记录,可是每次执行这段程序的时候都是覆盖了上次的记录,就是说每次操作都使得webcfg.dat文件只有一个TRecKind型记录,我想要的不是这样啊,高手教我~~~在线等!!马上给分!!