private void button1_Click(object sender, EventArgs e) { string allies = @"C:\L0707161.log"; StreamReader alliestext = new StreamReader(allies); string readall = alliestext.ReadToEnd(); alliestext.Close(); string alliesMatch = "<Allies>"; if (Regex.IsMatch(readall, alliesMatch)) { } else { } }
L 07/07/2009 - 17:41:15: "Player<5><STEAM_0:0:00000000><Allies>" changed role to "#class_allied_heavy"