Every time into the software execution time, always keep a number, how to execute only once, also can change to the original data cleaning off
private void textBox1_TextChanged (object sender, EventArgs e)
{
System. IO. File. AppendAllText (" C: \ \ Users \ \ Lamic \ \ Desktop \ \ data records. TXT ", textBox1. Text + "\ r \ n");
}
Private void MainInterface_Load (object sender, EventArgs e)
{
TextBox1. Text=System. IO. File. ReadAllText (" C: \ \ Users \ \ Lamic \ \ Desktop \ \ data records. TXT ");
}
CodePudding user response:
Into a System. IO. File. CreateText
CodePudding user response: