using System; public class Test { public static void Main() { string text = @"This is a \r\n test"; Console.WriteLine(text); text = text.Replace(@"\r\n", Environment.NewLine); Console.WriteLine(text); } }