Click here to Skip to main content
15,904,500 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

i want to read data which is in zipped in .gz format. it contains one log file with .log extension.

anyone can tell how to achieve this step using c#.i want to read the data line by line which is in gz file without extracting the file?

Thanks in advance

Thanks & Regards
Santhosh
Posted

This may help:
http://www.icsharpcode.net/opensource/sharpziplib/[^]

You'll find exaples using google[^]

You can also take a loog at System.IO.Compression.GZipStream[^]

Regards
Espen Harlinn
 
Share this answer
 
AFAIK you can't: .gz files aren't stored "line-by-line" and the files have to be extracted in their entirety before you can use them, at least to a temporary file / directory.

See MSDN GZipStream class[^] for further info.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900