Most of the samples i been finding just relate to one file. What if I needed more then one file zip up.
C#
TextWriter wr;
for (int i = 0; i < 4; i++)
{
wr = File.CreateText(@"code\code" + i + ".txt");
wr.WriteLine("This would be a Text File");
wr.Flush();
wr.Close();
wr.Dispose();
}
//Zip up the files (counted 4 files total)try
{
}
catch
{
// Couldn't compress.
}
How could I zip up all 4 text files and put them in all one zip file.
Joe
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Thanks. how ever that idea requires a Libary related to zipping files. The libary is a create idea. Just I didn't want to add that libary to this project. Thanks any way
Former memberPosted Dec 9, 2009, 6:38 PM EST
Try this link it would be useful...
http://dotnetzip.codeplex.com/wikipage?title=Examples&referringTitle=Home
With Regards
P.Krishna Prasad
Joe14 pointsPosted Dec 9, 2009, 7:15 PM EST