Databases handle this problem by locking rows or tables. The first user who reads the data locks it so no one else can read it. He does not release the lock until he is done writing or his write has failed.
It looks to me as if Perl's flock command can get around the race conditions problem, but I do not see anybody using it in their solutions.
In reply to Re: Storing Info in a text File
by sierrathedog04
in thread Storing Info in a text File
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |