This website may use cookies. More info. That's Fine x
Welcome Login

Line endings


Visual Studio

The ascii characters in use for line endings are:

CR: carriage return

LF: line feed
Windows = CRLF (\r\n)

Mac = CR  

Unix = LF

 

 

The proper way to add a newline character is by using Environment.NewLine, ie:

String myStr = "Some text" + Environment.NewLine;

 

Or use method:

.WriteLine()

Created on: Tuesday, March 15, 2011 by Andrew Sin