Monday, April 29, 2013

TextFieldParser reads line feeds as the end of a line

I did this to get rid of lf when they weren't line feeds with carriage returns

originalFile = System.Text.Encoding.UTF8.GetBytes(Regex.Replace(Encoding.UTF8.GetString(originalFile), "[^\r]\n", "")); 

No comments:

Post a Comment