How to use New Line Characters in C#
NewLine characters can be used in variables in the form of escape sequences (\n for the NewLine character) as shown below
Console.WriteLine("Name:\tPraveen Dhaggay\nAge:\t34\nOccupation:\tConsultant");
The output will be:
do you know whether this outputs a CRLF sequence, or just an LF? Does it depend on the platform?
ReplyDelete