downloaded file content <> content url()
Posted: Wed Oct 17, 2012 9:14 pm
Hi All,
I downloaded a simple .txt file from an http url. I need to compare the content of downloaded file with the content of the file on the http.
I expected get the same data in the file where i downloaded the file by libURLDownloadToFile and the data i obtained by "put url", but there is not the case.
What is the trick to avoid this ?
Thanks
Jean-Marc
I downloaded a simple .txt file from an http url. I need to compare the content of downloaded file with the content of the file on the http.
Code: Select all
on mouseUp
put "http://www.alternatic.ch/jmb/ecrireenpictos/ArchInstallEEP" & "/" & "listeFolderEEP2.txt" into tlisteFolderEEP2
put url (tlisteFolderEEP2) into tListeInstall1
put specialfolderpath("documents") & "/" & "listeFolderEEP2.txt" into tPathInstall
libURLDownloadToFile tlisteFolderEEP2,tPathInstall
wait 30
put url("file:" & tPathInstall) into tListeInstall2
put (tListeInstall1 = tListeInstall2) & cr & tListeInstall1 & cr & cr & tListeInstall2 -- return false, some cr disappear
end mouseUp
I expected get the same data in the file where i downloaded the file by libURLDownloadToFile and the data i obtained by "put url", but there is not the case.
What is the trick to avoid this ?
Thanks
Jean-Marc