I do not think that Regex will do any good here. a simple
String.Replace is enough.
You can look for Environment.NewLine.
A tricky situation happens though if the file was originated in a
system with a different NewLine sequence, you will replace nothing but
the text still do not look like you intented.
IMHO you should look for char# 13 and 10 and remove them.
I have worked with ebcdic before and it was one of my pet hates, for
example in c 0x20 is a space instead of simply using ' '. Made porting
interesting.
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.