Sign in
United States (English)
Brasil (Português)
Česká republika (Čeština)
Deutschland (Deutsch)
España (Español)
France (Français)
Italia (Italiano)
Россия (Русский)
대한민국 (한국어)
中华人民共和国 (中文)
台灣 (中文)
日本 (日本語)
香港特别行政區 (中文)
.NET Framework Developer Center
Home
Library
Learn
Downloads
Support
Community
Forums
.NET Framework Developer Center
>
.NET Development Forums
>
.NET Base Class Library
>
What is the new line character
Ask a question
Search Forums:
Search .NET Base Class Library Forum
Search All .NET Development Forums
Search All MSDN Forums
What is the new line character
Thursday, November 05, 2009 10:30 PM
MinguiSun
0
Sign In to Vote
I write code like this:
System.Console.WriteLine("Somthing\n");
But sometime this go piped to file and output look funny in file. Is there constant in .NET for the new line character? I think that is problem because not using the correct new line char.
Reply
Quote
Answers
Thursday, November 05, 2009 10:38 PM
JohnWein
1
Sign In to Vote
This one will almost always be correct: Environment.Newline
Marked As Answer by
eryang
MSFT
, Moderator
Thursday, November 12, 2009 7:35 AM
Proposed As Answer by
yazeem
Sunday, November 08, 2009 4:26 PM
Reply
Quote
All Replies
Thursday, November 05, 2009 10:38 PM
JohnWein
1
Sign In to Vote
This one will almost always be correct: Environment.Newline
Marked As Answer by
eryang
MSFT
, Moderator
Thursday, November 12, 2009 7:35 AM
Proposed As Answer by
yazeem
Sunday, November 08, 2009 4:26 PM
Reply
Quote
Need Help with Forums? (FAQ)
© 2009 Microsoft Corporation. All rights reserved.
Manage Your Profile
|
Terms of Use
|
Trademarks
|
Privacy Statement
|
Contact Us