I try to write line by line data but. if i run my application. writng last text1 data in script.txt
private void button1_Click(object sender, EventArgs e)
{
System.IO.TextWriter tw;
tw = new StreamWriter("C:/Script.txt");
tw.WriteLine(textBox1.Text);
tw.Close();
}