View files inside of zip files?

techwiz24

Well-known member
Joined
Jun 2, 2010
Messages
51
Programming Experience
Beginner
This one might be tricky. I want to be able to read, lets say a text file, from inside of a zip file. How would I do this without un-zipping the file? could I do something like "C:\test.zip /test.txt"? or would I have to do other things?

Edit, I tried, but
Code:
IF System.IO.File.Exists("C:\test.zip /test.txt") then
MsgBox("File Exists")
Else
MsgBox("something else")
End If
doesn't even return anything
 
Last edited:

jmcilhinney

VB.NET Forum Moderator
Staff member
Joined
Aug 17, 2004
Messages
14,283
Location
Sydney, Australia
Programming Experience
10+
You can't view the contents of a file inside an archive without extracting, i.e. decompressing, that data. There is no ZIP support in the .NET Framework so you will either have to code something yourself, invoke an application that you have installed, use the ZIP support built into Windows, or else use a third-party component. There are various third-party components around, including SharpZipLib and DotNetZip, which are both free.
 
Top Bottom