> I have a flatfile DB that I save record structures into.
> >From time to time, I want to delete a record from the file.
[...]
> Can anyone suggest a better way ?
if you have control over the contents of the file
you could include a "status" field.
if something an innocent user might do could trigger
the unexpected thrash of the file this is probably
the way to go.
if too many inactive records gets to be a problem
you could rebuild it (as you described) as a separate
operation.
-ns
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED]
with body of "unsubscribe delphi"