Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System.Timers;
- public Timer timer;
- public void Czas()
- {
- timer = new Timer();
- timer.Tick += new EventHandler(timer_Tick);
- timer.Interval = 3000; // in miliseconds
- timer.Start();
- }
- private void timer_Tick(object sender, EventArgs e)
- {
- File.WriteAllLines(path, lista);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement