← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #184408]: Typing information from a list

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
These are basic Python features. (http://docs.python.org/tutorial/inputoutput.html#reading-and-writing-files)
You need some basic Python knowledge.

csv = open("path-to-csv-file)

csv.readlines() # returns all records as list

csv.close() # closes the file

csv.readline() # returns the next line, None if no more there

The rest is looping and string handling.

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