문제

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 with \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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top