var
  f:File of Byte;
  Size: integer;
begin
  AssignFile(f,FileName);
  Reset(f);
  Size:=FileSize(f);// 字节为单位;
  CloseFile(f);
end;