I am taking a similar approach, but with two files in place of one. If main counter file is blank, use values from counter.bak file.
Lock Counter_File
Read Count
On Fail
Read Counter_File.bak
Increment
Write Data to Counter_File
Copy Counter_File to .bak file.
Release Lock
In reply to Re: Mysterious Disapperance of file contents
by Ajnabi
in thread Mysterious Disapperance of file contents
by Gorby
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |