sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #01456
Re: [Question #146518]: Get value from a text file, then loop process until end of text file
Question #146518 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/146518
RaiMan posted a new comment:
UPDATE: sorry for wrong indentation :-(
# form 1: each field in a variable
inp = file("path to your file")
content = inp.readlines()
for line in content:
(wrd, nmbr) = eval(''.join(('[', line.strip(), ']')))
print "word:", wrd, "number:", nmbr
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.