Read .txt from a .zip file?

  • Thread starter Thread starter Dave
  • Start date Start date
D

Dave

Greetings,

How can I run a System.IO.StreamReader on a text file that is in a zip file?

Thanks,

-Dave
 
Check out ShapZipLib:
http://www.sharpdevelop.com/OpenSource/SharpZipLib/Default.aspx. It'll get
you as far as allowing to decompress zip files. From there you could write
your own class that would decommpress a file into a temp directory and open
a stream on it. You might be able by using the provided source code add an
ability to stream directly from the decompression routine, without an
intermediate file
 
Our product, Xceed Zip for .NET Compact Framework, will let you
directly access any file, including a .TXT file, as a .NET file or
file stream object, directly from within the Zip file, with only a
couple of lines of code. Quick and easy... Just not free

http://www.xceedsoft.com/products/ZipNetCF

Check out ShapZipLib:
http://www.sharpdevelop.com/OpenSource/SharpZipLib/Default.aspx. It'll get
you as far as allowing to decompress zip files. From there you could write
your own class that would decommpress a file into a temp directory and open
a stream on it. You might be able by using the provided source code add an
ability to stream directly from the decompression routine, without an
intermediate file

--
Alex Leblanc
Xceed Software Inc.
http://www.xceedsoft.com

Check out our advanced .NET grid and SmartUI controls

Email: (e-mail address removed) (remove the first 'x')
 
Yes, I was about to recommend Xceed library, but was in doubt since from the
web site description it is not obvious if one can open a stream on a
separate file in the archive. Thanks for confirming
 
regarding XCEED:

- works fast
- locks files; cannot zip same files second time before GC collects their objects
- issues SHARE_READ only, not SHARE_READ | SHARE_WRITE (this is when translated to win32 API. Another sort of trouble, yet arguable
- documentation sucks
- WHILE UNINSTALLS, removes .NET HELP COLLECTION. You will have to reinstall VS - at least in my case

-


Posted via DevelopmentNow Groups
www.developmentnow.com/g
www.developmentnow.com
 
- documentation sucks

For god's sake you must be joking, right?

....We can take criticism, but more work has probably gone into the
Xceed Zip for .NET documentation than many competing Zip library
developers have put on their entire .NET Zip product including the
docs...

Might as well turn it into constructive criticism while you are at it,
thanks.

regarding XCEED:

- works fast
- locks files; cannot zip same files second time before GC collects their objects
- issues SHARE_READ only, not SHARE_READ | SHARE_WRITE (this is when translated to win32 API. Another sort of trouble, yet arguable
- documentation sucks
- WHILE UNINSTALLS, removes .NET HELP COLLECTION. You will have to reinstall VS - at least in my case

-


Posted via DevelopmentNow Groups
www.developmentnow.com/g
www.developmentnow.com

--
Alex Leblanc
Xceed Software Inc.
http://www.xceedsoft.com

Check out our advanced .NET grid and SmartUI controls

Email: (e-mail address removed) (remove the first 'x')
 
Back
Top