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?