Problem with Linefeeds in C#
I use System.Environment.NewLine
to add a line feed between lines. This is in a C# dll. This dll uses IBM RATIONAL CLEARQUEST API's to insert into Oracle database these values. CLEARQUEST is setup in a Linux box and I am not sure under which OS the Oracle is setup.
Point is the System.Environment.NewLine
i use in concatination (with + operator on string) does not work. The text comes as continuous string.
How can i realize the line breaks in C#. I tried wi开发者_StackOverflowth \r\n
but same result.
has any one faced this problem? I am not sure if the platform could be a factor here
Try
string CRLF = "\x0d\x0a";
And use that instead of Environment.Newline
.
source http://www-01.ibm.com/support/docview.wss?uid=swg21120820
精彩评论