If I do this code in the command line:
f = open(fl, 'r') txt = "" for line in f: txt+=line f.close() print txt
I get all the output for the file fl, but if I do:
def editfl(self, fl): f = open(fl, 'r') txt = "" for line in f: txt+=line f.close() self.notebook_1.SetSelection(2) self.dedfrom = "fm" self.dedfl = fl self.text_ctrl_8.SetValue(txt)
then I only get the first 8-9 lines,
Until now it only occurs with this file (a log file generated by logkeys),
other (longer) files appear right...
What is causing the problems?
P.S.:If I try it with gedit I only get a bunch of weird not ASCII signs.
in bash, `cat` does output the content of the file right :s