how to zip a text file
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/1666824/net-zip-up-files">.Net Zip Up files</a>  </p>
</blockquote>



<p>Hi,</p>

<p>I am having a problem in creating a text file to zip file ,</p>

<p>I am creating a project which reads data file and convert it into a text file .</p>

<p>My code creates a text file .I want to zip the text file which is created , </p>

<p>Here Is My Code,</p>

<pre><code>private void button1_Click(object sender, EventArgs e)
{
    string path = DayFuturesDestination + "\\" + txtSelectedDate.Text + ".txt";
    StreamWriter Strwriter = new StreamWriter(path);
}
</code></pre>

<p>Can Anyone Pls Say me how to create the zip file after creating it into a text file.</p>

<p>Thanks In Advance.</p>
