Dear ALL,
Please Help.

I am not able to replace New line at special character.
Code Than i Have done.

string x=strtext.ToString().Replace(Convert.ToString((char)13),"\\n");

able code will give result as --> \n0

Why 0 at after \n .
Please help
it's ergent..

Thanks.

My question is, what input are you providing?

Is it at all possible that the original input has an extra character following the one you are replacing which is being shown in your result?

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.