Hi there,
Please check the following code.
Is there a better or elegant way of writing the below code?
Thanks, M.
FileStream fs = File.OpenRead("c:\\aaa.zip"); GZipStream g = new GZipStream(fs, CompressionMode.Decompress); StringBuilder sb = new StringBuilder(); int b = fs.ReadByte(); while (b != -1){
sb.Append((
char)b);b = fs.ReadByte();
}
Console.WriteLine(sb.ToString());
Bechir BejaouiPosted Dec 6, 2008, 7:34 AM
http://www.c-sharpcorner.com/UploadFile/yougerthen/607172008133427PM/6.aspx