Jump to content

Recommended Posts

Posted

i want to read a few proxy line in file.txt but stop it before ':' symbol

111.222.333.444:8080

11.2.3.44:80

111.22.33.44:8181

so the result should be

111.222.333.444

11.2.3.44

111.22.33.44

i don't have a problem if the file look like this

111.222.333.444:8080

131.222.373.484:8080

141.252.353.494:8080

how to read in autoit? tqvm.

Posted

tq all... mission accomplished...

While 1
    $line = FileReadLine($file)
    If @error = -1 Then ExitLoop
    $result = StringSplit($line, ":")
    $ipaddres = $result[1]
    MsgBox(0, "Line read:", $ipaddres)
Wend

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...