in reply to Re: How to modify/delete records in a flat-file database?
in thread How to modify/delete records in a flat-file database?

> How might I ensure that my original data remains uncorrupted even with multiple users?
Unless there are really multiple updates at a time ...

pelagic
  • Comment on Re: Re: How to modify/delete records in a flat-file database?

Replies are listed 'Best First'.
Re: Re: Re: How to modify/delete records in a flat-file database?
by TwistedGreen (Sexton) on Apr 28, 2004 at 12:45 UTC
    Oops, I missed that. It certainly brings more complexity to the problem... Database would definitely be the way to go then, I'd think. Even though I lock the files when they are read and written in my example above, two concurrent users could overwrite each other's changes.
      Thank you for sharing your code example with me. Thats a really nice way to read in data; much cleaner than the way that I would have thought. Regarding what was said about the multiple updates, I'm not sure how much concurant useage would occur with this script. I guess it's best to play it safe, however. Thank you very much for your input. Joe