← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #171648]: Search inside files and get particular data

 

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

    Status: Needs information => Open

Jeff Sant gave more information on the question:
Dear Friend,

I want to take input from a file eg. testcases.text

testcases = open("c:\testcases.txt")
pass = open("c:\pass.txt")
fail = open("c:\fail.txt")

testcases.readline()

if test is pass then do the following:
1. remove the case from the testcases file
2. append the test case into pass file

if test is faile then do the following:
1. remove the case from the testcase file
2. append the test case into fail file

How can i do this, as i am trying to append using  open("anyfile", 'a')
but it is not saving it to the file.

Please help me regarding this.

Thanks

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