Ive parsed the text file in the List<string> object and the test file contains \n and \t , however, as soon as I output the lines to the console, they are displayed as "\ n" and "\ t", not a new line and tab .
I am currently using myList[i].Replace(@"\n", "\n").Replace(@"\t", "\t") , but this seems a bit cumbersome, especially if you need to add in the future extra escape sequences.
Do they have any way to avoid escape sequences? Something like string.UnEscape would be just perfect.
source share