Over a million developers have joined DZone.

Reading From A Zip File

·

import zipfile

z = zipfile.ZipFile("zipfile.zip", "r")
for filename in z.namelist():
        print filename
        bytes = z.read(filename)
        print len(bytes)
Topics:

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}