i get an error when i try to delete in file and rename it as out file,,the
error says
"permission denied".
actually i need something like following:
in_file = open('in.txt','w')
for line in in_file:
line.strip().strip(',')
but when i run the above code,i get an error"bad file descriptor"
thanks,,
kavitha
Mohammad Tayseer <[EMAIL PROTECTED]> wrote:
kavitha thankaian <[EMAIL PROTECTED]> 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.--
http://mail.python.org/mailman/listinfo/python-list
---------------------------------
Heres a new way to find what you're looking for - Yahoo! Answers --
http://mail.python.org/mailman/listinfo/python-list