Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

compare numbers -need help-

$
0
0

hi all

 

this is a part from program update code

 

it must check a file size from a download link and compare it to test.exe that contain the size of another file in bytes

AutoIt         
Local $nSize = InetGetSize("http://www.autoitscript.com/autoit3/files/beta/update.dat") If FileExists("test.txt") Then Local $file = FileOpen("test.txt", 0) While 1     Local $line = FileReadLine($file)     If @error = -1 Then ExitLoop WEnd FileClose($file) Endif If $nSize == $line Then   MsgBox(4096,"","Matched!") Else   MsgBox(4096,"", "The strings did not match!") EndIf

i am new to autoit and this code always give "The strings did not match" even if they're the same "445"

 

any ideas ?


Viewing all articles
Browse latest Browse all 12506

Trending Articles