How to use readline.read_history_file with Sikuli?
Am I right that readline.
If I'm correct, what would be the best method to store history of readline? I'm trying to read from a file, line by line, recording to a history file probably after every line (then doing something with the line) and I'd liked it to be saved to a history file so I can easily stop and start my script. As a quick test, what I'm trying at the moment is:
file_dir = "c:\\Temp\\"
listfile=
while True:
#listfile.
var1 = listfile.readline()
var2 = listfile.readline()
var3 = listfile.readline()
#listfile.
print var3
print var2
print var1
wait(11)
listfile.close()
This works as I expect except I can't use the history hence why it's commented out. As you may guess from my example, this is on Windows. Specifically Windows XP and I'm using Sikuli X-1.0rc1.
Cheers
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- RaiMan
- Solved:
- Last query:
- Last reply: