Thanks for the reply and thanks for taking the time to answer such a relative simple question. The reason I asked was that I was still left qith a question mark in my head after reading the MSDN entry for Environment.NewLine.
I seem to remember when programming C in Linux many moons ago I was using "\n" and "\r\n" so unless things have changed Linux uses "\r\n" also.
It is just so much more easy to write "\r\n" instead of using Environment.NewLine (even with intellisense) :)
Again thanks for replying
Einar
>>Is there a benefit of using Environment.NewLine instead of "\n" or "\r\n" directly in my string?
>>Einar
>
> In theory yes. If you run .NET on a non-Windows box the line feed carriage return combination maybe different and this is meant to remedy that.
>
>In reallity that's highly unlikely and even if you do most platforms these days use \r\n for linefeed newline combinations.
Semper ubi sub ubi.