S
Sun Tiantang
Sorry if this might sound silly. I was reading some blog about string yesterday and this got my attention. It seems that \n and \r\n differ mainly in different OS and it is said that on Windows Environment.NewLine should be used.
But still I can't see any difference between the following two fro the console window:
Console.WriteLine("Test\nThis is a new line");
Console.WriteLine("Test\r\nThis is a new line");
Can someone share some insight on what's practical difference between those two in other cases please?
Thanks.
Tiantang
But still I can't see any difference between the following two fro the console window:
Console.WriteLine("Test\nThis is a new line");
Console.WriteLine("Test\r\nThis is a new line");
Can someone share some insight on what's practical difference between those two in other cases please?
Thanks.
Tiantang