Hi, i'm reading lines from a text file with a StreamReader.
If i read this line:

Hello\nWorld

and then print it with Console.Write() it will print \n, but i want it to print a newline. How can i do that?

Hello, VelcroMan.
There is one (that I know) method to do that. Here: Regex.Unescape Method

P.S. But you should pay attention on this part:

Of course, Escape cannot perfectly reverse Unescape because it cannot deduce from an unescaped string which characters may have been previously escaped.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.