Question #270082 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/270082

    Status: Open => Answered

RaiMan proposed the following answer:
ok, my fault:

i = 0
lines = open("notepad file.txt").readlines()
for line in lines:
    i += 1
    type("PLAN"+str(i))
    fields = line.split()
    k = 2
    n = 1
    name = ""
    while fields[n] != "age":
        name += " " + fields[n]
        k += 1
        n += 1
    age = fields[k]
    sex = fields[k + 2]

in my test with your above data I got this:

PLAN1
Anurag Gupta
12
male

PLAN2
Lokesh Sharma
24
male

PLAN3
Ashu Gupta
23
male

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.

_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp

Reply via email to