using System;
using System.IO;
using System.Text.RegularExpressions;
namespace ConsoleApplication_C_Sharp
{
class Program
{
static void Main(string[] args)
{
string text = "";
using (StreamReader sr = new StreamReader("d:\\data"))
{
do
{
string line = sr.ReadLine();
text += Regex.Replace(line, @" ?\(.*?\)",string.Empty) + Environment.NewLine;
} while (sr.EndOfStream == false);
}
File.WriteAllText("d:\\data", text);
}
}
}
/*
run:
*/