/Files/ycdx2001/Ionic.Zip.Reduced.rar
ZipFile zip
=
new
ZipFile();
zip.AddFile( " c:\\1.txt " );
MemoryStream output = new MemoryStream();
zip.Save(output);
byte [] zipbytes = output.ToArray();
FileStream fs = File.OpenWrite( " c:\\999.zip " );
fs.Write(zipbytes, 0 , zipbytes.Length);
fs.Close();
zip.AddFile( " c:\\1.txt " );
MemoryStream output = new MemoryStream();
zip.Save(output);
byte [] zipbytes = output.ToArray();
FileStream fs = File.OpenWrite( " c:\\999.zip " );
fs.Write(zipbytes, 0 , zipbytes.Length);
fs.Close();