← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #657969]: How to read text from notepad and type in form without Enter key

 

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

    Status: Open => Answered

dinev proposed the following answer:
Not sure from where you are reading the values
In python you can just do

with open(fname) as f:
    content = f.readlines()
# you may also want to remove whitespace characters like `\n` at the end of each line
content = [x.strip() for x in content]

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.