private void button1_Click(object sender, EventArgs e) { String Add = textBox1.Text; StorageAuto1 add = new StorageAuto1(); Console.WriteLine("Enter the line you want to add: "); add.AppendAllText("dbase.txt", Add); }
private void button1_Click(object sender, EventArgs e) { String Del = textBox1.Text; String Add = textBox2.Text; StorageAuto1 del = new StorageAuto1(); del.Delete("dbase.txt", Del.Length); Console.WriteLine("-------------redahuvannya-----------------------"); StorageAuto1 add = new StorageAuto1(); add.AppendAllText("dbase.txt", Add); }