File I/O

Kirt moqtar at gmail.com
Fri Sep 29 06:11:17 EDT 2006


Hi! I need some help in file I/O

I have an xml file..

<Top>
<Body1>xyz</Body1>
</Top>

I want to open these file in append mode and add the line
<Body2>abd</Body2>

Such that i have:

<Top>
<Body1>xyz</Body1>
<Body2>xyz</Body2>
</Top>

can anyone show me the way to achieve this?? 

thanx




More information about the Python-list mailing list