← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #254275]: To fetch data in sikuli from CSV file

 

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

    Status: Open => Answered

Eugene S proposed the following answer:
Hi,

The csv reader will work like this:


import csv

input = open('fileName.csv', 'rb')

for row in csv.reader(input):
    firstColumnValue = row[0]
    secondColumnValue = row[1]
    thirdColumnValue = row[2]


Cheers,
Eugene

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