Home Notices Documents Classes Download Others Rice
Classes  >  writer  >  NewLine(string)
writer class : NewLine(string) setter

Description

Sets a line terminator string that are used in the WriteLine methods.

Syntax

writerInstance.NewLine = terminator

Arguments

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

Return value

None.

Sample code

1:

writer w = new writer("c:\somewhere...\sample.txt");

2:

w.NewLine = "".CR + "".LF; // The default value.

Notes

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

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.