Jump to content

Recommended Posts

Posted

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??

Posted (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 by Valuater

NEWHeader1.png

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...