Hi,
I am trying to do something like this in python. Can you please help?
handle= open('test.txt','a')
handle.write('''
Testsomething$i
something$i-test
'''
)
when i write into the file, i would like to have the output like this.
Testsomething1
something1-test
Testsomething2
something2-test
Testsomething3
something3-test
.......
I can perform the same using a loop. But how do i append i (1,2,......n) while
i am writing into the file.(I mean inside the handle.write)
Thanks,
Chandru
---------------------------------
Pinpoint customers who are looking for what you sell. _______________________________________________
Tutor maillist - [email protected]
http://mail.python.org/mailman/listinfo/tutor