The @ prefix turns off the processing of escape characters.
using System; using System.Text; class StringApp { static void Main(string[] args) { string finalString = @"\n\tString file: 'C:\MyApp\Strings'"; Console.WriteLine(finalString); } }