I'd make the location and/or filename more explicit to the module user, and the filename at least in one constant somewhere so it can be changed trivially if needed.
In fact, isolating the save/restore logic is a good idea in general, so the whole thing could be replaced without affecting the rest of the module.
In reply to Re: Maintaining state in modules
by John M. Dlugosz
in thread Maintaining state in modules
by cLive ;-)
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |