<div dir="ltr"><br><br><div class="gmail_quote">On Sun, Sep 28, 2008 at 5:51 PM, Christian Heimes <span dir="ltr"><<a href="mailto:lists@cheimes.de">lists@cheimes.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d"><a href="mailto:dudeja.rajat@gmail.com" target="_blank">dudeja.rajat@gmail.com</a> wrote:<br>
</div><div class="Ih2E3d"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br>
<br>
<br>
I'm using the writelines() method to write some lines to a text file. But<br>
I'm unable to write the % character to the file using the following format:<br>
<br>
fdTolFile.writelines("\n\tdiff Not in %s '%' range" %(toleranceInPer))<br>
</blockquote>
<br></div>
Try %% :)<br><font color="#888888">
<br>
Christian</font><div><div></div><div class="Wj3C7c"><br>
<br>
--<br>
<a href="http://mail.python.org/mailman/listinfo/python-list" target="_blank">http://mail.python.org/mailman/listinfo/python-list</a><br>
</div></div></blockquote></div><br><br clear="all">Thanks Garry & Christian.<br>
<br>
It worked.<br>
<br>
Regards,<br>
Rajat<br>
</div>