Way to remember which files to download?
Posted on 2011-09-26
I worked out the web site downloader (web crawler) but this doesn't remember where it left off if it crashes.
So I want to implement something very simple using a text file or something which files haven't download yet if I restart the app.
1) if app crashes and restarts, it needs to remember where it was lastly and pick up from there.
So I thought about creating somekind of 2 containers.
1) grab all file listing first and insert them into this container,filetodownloadContainer
2) once it is downloaded, insert it into the dowloadedContainer
if the app goes downdown, restart and grab all the file listing again and see if it is in the downloadedContainer.
Anyway, can you point me to the right direction please?