mud409 Posted January 31, 2008 Share Posted January 31, 2008 (edited) I've set this script up to check the file size of a file and if different download the file. I'd like to change it slightly, right now I'm using Inetgetsize to read filesize. what I'd like to do is check some info stored on the developers site that indicates the file has been updated. http://kaillera.movsq.net/?dltxtI'd like to copy each of these lines and put each one in a variable so I can compare it to other variables to see if there's a difference.... any suggestions? Edited January 31, 2008 by mud409 Link to comment Share on other sites More sharing options...
Uriziel01 Posted January 31, 2008 Share Posted January 31, 2008 (edited) StringSplit should help you. but dont give @CRLF as a delimeter, because you will receive blank lines, just make it like $source=_INetGetSource('http://kaillera.movsq.net/?dltxt') $source=StringStripCR($source) $source=StringSplit($source, char(10)) You will get each line in an next cell of array Edited January 31, 2008 by Uriziel01 Link to comment Share on other sites More sharing options...
mud409 Posted January 31, 2008 Author Share Posted January 31, 2008 yeah but how do I check the page to even read the info? Link to comment Share on other sites More sharing options...
Uriziel01 Posted January 31, 2008 Share Posted January 31, 2008 (edited) What do you mean "check the page" ? _INetGetSource will read the page source. #include <INet.au3> #include <String.au3> #include <array.au3> $source=_INetGetSource('http://kaillera.movsq.net/?dltxt') $source=StringStripCR($source) $source=StringSplit($source, chr(10)) _ArrayDisplay($source,"ppp") working code Edited January 31, 2008 by Uriziel01 Link to comment Share on other sites More sharing options...
mud409 Posted January 31, 2008 Author Share Posted January 31, 2008 awesome, thanks.... Link to comment Share on other sites More sharing options...
Uriziel01 Posted January 31, 2008 Share Posted January 31, 2008 Your welcome Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now