How to implement a persistent counter in Python
<p>Is there a way to have a "last known" counter in Python that will survive after server reboot?</p>

<p>I have a python script that is launched on schedule (by cron). It read files with document IDs in predefined format. I need to remember last processed document ID in order to ignore all the previous ones if there are any.</p>
