newbie question(file-delete trailing comma)

Mohammad Tayseer m_tayseer82 at yahoo.com
Mon Feb 26 11:36:21 EST 2007


kavitha thankaian <kavithapython at yahoo.co.in> wrote:
> and i need the output also in the same input.txt

just add

import os
os.remove('in.txt')
os.rename('out.txt', 'in.txt')

 
---------------------------------
Don't be flakey. Get Yahoo! Mail for Mobile and 
always stay connected to friends.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20070226/85bd091d/attachment.html>


More information about the Python-list mailing list