Downloading a file from the Web with fopen() and fgets()