http://qs321.pair.com?node_id=348804


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

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.
  • Comment on Re: Re: Re: How to modify/delete records in a flat-file database?

Replies are listed 'Best First'.
Re: Re: Re: Re: How to modify/delete records in a flat-file database?
by JoeJaz (Monk) on Apr 28, 2004 at 17:13 UTC
    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