open files using filename

Asked by Anunaya

Hi

I have 400 .cfg file. I have to open each file copy some text to a text file and my parser will parse the text to give the test verdict.
The problem I am facing is i don't want to use images for opening the file.

If I try to open the file using below:
doubleClick("one.cfg")

I get and error that file cannot been opened.

I tried the type(Key.DOWN) method but if the screen gets refreshed the copying goes for a toss and my parser fails the test cases which is not correct.

Can you please let me know how this problem can be resolved?

Basically I want to know how can I use doubleClick("one.cfg")

Question information

Language:
English Edit question
Status:
Answered
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

just use Pythons file/read/write methods, to do this job.

Can you help with this problem?

Provide an answer of your own, or ask Anunaya for more information if necessary.

To post a message you must log in.