Saving the last tweet id in a file to avoid re-processing the tweets in the event of a power failure