c# save program output to a (.txt) file : My program

    namespace trim2
      {
         class Program
          {
            static void Main(string[] args)
              {
                //ask user to start, if yes then continue, else then close

                DataConversion()
              }

        public static void DataConversion()
        {
            string lines = File.ReadAllText(@"d:\trim1.txt");
            string result;
            result = lines.Replace("- - ",string.Empty).Replace("+"string.Empty).....
            
             \\process goes here
             \\process goes here
             \\process goes here
        }
      }
    }



What i expected is after the file goes thru the data conversion process it would save into a new text file (which is the processed one).. how can i achieve this?

Also i tried this line, seems wont work

     File.WriteAllText("C:\Users\Cleaned.txt", new string(ShiftLine));

Thanks for your reply