buymeapc Posted February 17, 2006 Share Posted February 17, 2006 Alright, I'm having a brain fart..... I need to be able to check a file for specific text and then repen the file and check once more for the same text again. The code I have so far is: Dim $steam_login, $y GUICtrlSetData($progressSTEAMUPDATE, 10) $y = 1 While $y = 1 $line = FileReadLine($input) If @error = -1 Then;If end-of-file, close and re-open the cd key file MsgBox(0,"","eof") FileClose($input) $input = FileOpen($var,0) EndIf If StringInStr($line,"station"&GUICtrlRead($stationid)) Then $steam_login = $line $y = 0 ExitLoop EndIf WEnd What am I doing wrong?? Link to comment Share on other sites More sharing options...
Valuater Posted February 17, 2006 Share Posted February 17, 2006 (edited) 1 $line = FileReadLine($input) maybe fileread($iput)... if so use file get size to be sure 2 If StringInStr($line,"station"&GUICtrlRead($stationid)) Then means "stationID" no spaces?? 3 maybe take a llok at "Find That Script" in my signature... it does the same thing 8) Edited February 17, 2006 by Valuater 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