Home Cooker Classes Others Rice CookerGX
Classes  >  writer  >  NewLine(string)
writer class : NewLine(string) setter

Description

Sets the line terminator string that are used in the WriteLine method.

Syntax

writerInstance.NewLine = terminator

Arguments

ClassNameDescription
stringterminatorThe line terminator string that are used in the WriteLine method.

Return value

None

Sample code

//anyWriter is a instance of writer type.

anyWriter.NewLine = "".CR + "".LF;

Notes

It's a wrapper of the System.IO.StreamWriter.NewLine.

The default line terminator string is a carriage return followed by a line feed ("\r\n").

Only "\n" or "\r\n" should be used as line terminator strings.

Links for reference

Copyright © Rice All rights reserved.