Rather than storing your count in a file, I'd store it in a file's name.
Create a directory, and create a single file in that directory who's name is the count. Provided the directory is local, rename is atomic without additional locking.
In reply to Re: Temporary usage of RAM memory
by BrowserUk
in thread Temporary usage of RAM memory
by thanos1983
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |