Updating file via socket instead of overwrite. - 17/04/05 07:38 PM
Well that's about as specific as I can make the topic title.
I'm not sure if it's possible, but I currently have a socket script that downloads a .txt file from a server, but everytime I want to update the file I have to rewrite it completely. As it has been becoming quite large lately (almost 800kB) the download is getting slower and slower.
Now I'd like to fix this before it actually starts to cause problems. Is there a possibility to check where the file on the server changed compared to the file on my hard drive and update it accordingly?
There are lines added, modified and deleted over the entire file every hour, it doesn't just add new lines to the end.
Well I hope this is kind of clear, if you read it a few times it should make sense. Now let me hope it's possible.
I'm not sure if it's possible, but I currently have a socket script that downloads a .txt file from a server, but everytime I want to update the file I have to rewrite it completely. As it has been becoming quite large lately (almost 800kB) the download is getting slower and slower.
Now I'd like to fix this before it actually starts to cause problems. Is there a possibility to check where the file on the server changed compared to the file on my hard drive and update it accordingly?
There are lines added, modified and deleted over the entire file every hour, it doesn't just add new lines to the end.
Well I hope this is kind of clear, if you read it a few times it should make sense. Now let me hope it's possible.