I'm reading this string
string input = "Hello, my name is \t Peter \n how are you ? ";
I'm printing this in my file:
Hello, my name is Peter
how are you?
I want the result to be:
Hello, my name is \t Peter \n how are you ?
How can I escape special characters like tabs and break lines when writing into a file text ?