private void CreateAwayFoulFile(object sender, RoutedEventArgs e) { StreamWriter Away; Away = File.CreateText("bbAway.Foul"); Away.WriteLine("0"); Away.Close(); }
private void CreateFile(object sender, RoutedEventArgs e) { StreamWriter Home; StreamWriter Away; Home = File.CreateText("bbHome.Score"); Home.WriteLine("0"); Home.Close(); Away = File.CreateText("bbAway.Score"); Away.WriteLine("0"); Away.Close(); }