sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #02396
Re: [Question #153770]: Need to take input from file
Question #153770 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/153770
RaiMan proposed the following answer:
--1. close
Do you have some Ruby experience or just missed it?
since close is a method you have to say close() to trigger its processing.
close alone does not error, it only returns the callable function reference (and does nothing)
--2. append to a file
just use "a" instead of "w", which opens the file in append mode
one more thing:
I usually use line.strip() to get rid of the trailing line feed. It is intelligent and removes e.g. \r\n and \r as well if used as line separator.
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.