File I/O

Kirt moqtar at gmail.com
Fri Sep 29 06:55:53 EDT 2006


jimburton wrote:
> Kirt wrote:
> > Hi! I need some help in file I/O
> >
> > I have an xml file..
> [snip]
> See http://diveintopython.org/xml_processing/

i dont wanna parse the xml file..

Just open the file as:

f=open('test.xml','a')

and append a line "<Body2>abc</Body2>" before  tag </Top>




More information about the Python-list mailing list