Yes the code above is what I am using at the moment but the problem is when I open the same file in TextPad for instance, TextPad opens it in no time whereas when I use the code above in Perl/Tk, it takes ages to open it. Is this the limitation of the text widget and can I do something about it?
Thanks