Sets or gets the line terminator string used by the current TextWriter.
[Visual Basic] Overridable Public Property NewLine As String [C#] public string NewLine {virtual get; virtual set;} [C++] public: __property virtual String* get_NewLine(); public: __property virtual void set_NewLine(String*); [JScript] public function get NewLine() : String; public function set NewLine(String);
The line terminator string for the current TextWriter.
The default line terminator string is a carriage return followed by a line feed ("\r\n").
The line terminator string is written to the text stream whenever one of the WriteLine methods is called. In order for text written by the Writer to be readable by a Reader, only one of the following line terminator strings should be used: "\r", "\n", or "\r\n".