Link to home
Start Free TrialLog in
Avatar of John86a
John86a

asked on

How to update text file off an URL?

Hi, every time an update button is pressed it must check the size of the current file and the file off an url (e.g.: http://www.test.com/filename.txt) - if they happen to be different then download the new one to replace the old one, and different as in, bigger or smaller. If the file is unavailable returns an error message explaining.

How can I achieve this?

Thanks.
SOLUTION
Avatar of Ferruccio Accalai
Ferruccio Accalai
Flag of Italy image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of John86a
John86a

ASKER

That's very nice, thanks! However, how can I compare filename.txt with a local filename.txt and download it in case they're different?
Avatar of John86a

ASKER

Actually, I found a way to download, just need to compare the local txt with the one on the website.
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of John86a

ASKER

thanks