Hi, I created a notepad and added an automatic backup to the file if the user does not save it. The code is given below:private void timer1_Elapsed(object sender, EventArgs e) { System.IO.File.WriteAllText(@"C:\Users\bnara\Documents\Recoveredfile.txt", richTextBox1.Text); timer1.Start(); }
But that code is overwriting the "Recovered file.txt" every time I open a new Notepad app. I want that code to keep creating new backup files every time the user opens a new Notepad.