mperdeck / LINQtoCSV

Popular, easy to use library to read and write CSV files.
199 stars 112 forks source link

Add configuration for line ending character(s) #42

Open philrowan opened 9 years ago

philrowan commented 9 years ago

I am in need of using UNIX style line endings in my files. Expecially as .net is opening and running on MAC and Linux systems now it seems good to be able to configure this in general. I would like to add this to the CsvFileDescription and then in CsvStream change line 71 from

        m_outStream.WriteLine("");

to

        m_outStream.WriteLine(m_endOfLineChar);

and pass this end of line char in from the file descriptor