Re: Unable to write % character to a file using writelines() method

2008-09-28 Thread dudeja . rajat
On Sun, Sep 28, 2008 at 5:51 PM, Christian Heimes <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > >> Hi, >> >> >> I'm using the writelines() method to write some lines to a text file. But >> I'm unable to write the % character to the file using the following >> format: >> >> fdTolFile.writ

Re: Unable to write % character to a file using writelines() method

2008-09-28 Thread Christian Heimes
[EMAIL PROTECTED] wrote: Hi, I'm using the writelines() method to write some lines to a text file. But I'm unable to write the % character to the file using the following format: fdTolFile.writelines("\n\tdiff Not in %s '%' range" %(toleranceInPer)) Try %% :) Christian -- http://mail.pyth

Unable to write % character to a file using writelines() method

2008-09-28 Thread dudeja . rajat
Hi, I'm using the writelines() method to write some lines to a text file. But I'm unable to write the % character to the file using the following format: fdTolFile.writelines("\n\tdiff Not in %s '%' range" %(toleranceInPer)) The second % does not get write to the file and Im getting errors. Pl