Read a text file from a zip.

Oct 19, 2009 at 4:54 PM

Just wondering if it is possible to read a text file from a zipFile without unzipping and saving it on the local drive.

Please let me know.



Oct 19, 2009 at 8:13 PM

Yes, you have options. Check the documentation on ZipEntry.OpenReader(), or ZipEntry.Extract(Stream) .

You can also use the new-for-v1.9 ZipInputStream class.  There is sample code for all of these things, in the doc.