C# – generating a CSV file, what carriage return character should I use

c++carriage-returnftpnewline

I have to create a CSV file that represents an order.

The file is going to be FTP'd over, and imported into another system.

What line feed/carriage return character should I use?

I am pretty sure the receiving end will be a microsoft system, is there a way to make it server agnostic?

Best Solution

You should to use System.Environment.NewLine, or ask for directions to that external application staff.