Hi dear BYTES members :
I have a probelm when writting in a text file i have a string
of 14 numbers and they change evey time with a space between them but the probelm every time it erase the previous line and write a new one until i find only the last line in the text file :( plz help me
the c# code :
I have a probelm when writting in a text file i have a string
of 14 numbers and they change evey time with a space between them but the probelm every time it erase the previous line and write a new one until i find only the last line in the text file :( plz help me
the c# code :
Code:
string path = @"D:\newS_R.txt"; TextWriter tw = new StreamWriter(path); tw.WriteLine(textBox46.Text + " " + textBox45.Text + " " + textBox44.Text + " " + textBox43.Text + " " + textBox42.Text + " " + textBox41.Text + " " + textBox40.Text + " " + textBox39.Text + " " + textBox38.Text + " " + textBox37.Text + " " + textBox33.Text + " " + textBox34.Text + " " + textBox35.Text + " " + textBox36.Text + "" + Environment.NewLine); tw.Close();
Comment