I am trying to do this<br>if os.path.exists("*.*.txt"):<br> file=open("*.*.txt")<br> self.text_view.get_buffer().set_text(file.read()) <br>else: <br> file=open("*.*.html")<br>
self.text_view.get_buffer().set_text(file.read())<br><br>It gives error *.*.txt not existing....There are two files in the folder testing.pnm.txt<br>and testing.pnm.html<br>How to make it open any name and extension file and read it?<br clear="all">
<br>Regards<br>Varnika Tewari<br>