[Tutor] removing file from zip archive.

Keo Sophon keosophon at khmeros.info
Wed Mar 29 09:42:13 CEST 2006


Hi all,

How can we remove one file inside of a zip archive? 

I'm using this method:

	import zipfile

	ziparchive = zipfile.ZipFile('test.odt', 'r')
	xmldata = ziparchive.read('content.xml')
	ziparchive.close

Thanks in advance,
Sophon


More information about the Tutor mailing list