Sign in to follow this  
Followers 0
buymeapc

Check File for specific text

2 posts in this topic

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

Share this post


Link to post
Share on other sites



#2 ·  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

Share this post


Link to post
Share on other sites

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
Sign in to follow this  
Followers 0