if FileExists('c:\1.db') the Append(f) else Rewrite('c:\1.db');
if FileExists('c:\1.db') the Append(f) else Rewrite(f);