How to make the script reads from where it left off?

See here: Mark CSV line as done