sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #34083
Re: [Question #270082]: Calling a data from TXT file
Question #270082 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/270082
Status: Open => Answered
RaiMan proposed the following answer:
lines = open("notepad file.txt").readlines()
for line in lines:
fields = line.split()
name = fields[1]
age = fields[3]
sex = fields[5]
if you need age as number:
age = int( fields[3])
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.