14
Answers

Copy text box(numeric double) value to txt file.

Farhan Shariff

Farhan Shariff

10y
1.1k
1
I am trying to copy the double value from text box to file but values are written multiple times, Meaning if I write 1.5 in text box I get 1 ,1. , 1.5 in text file

private void textBox1_TextChanged(object sender, EventArgs e)
{
StreamWriter sw = new StreamWriter(@"C:\Delta Sigma\Log.txt",true);
sw.WriteLine("Critical Delta Sigma:", textBox1.Text);

sw.Close();


}
Answers (14)