I\'m trying to remove any \"new line\" characters from each line of text in my log file.
Below is an example entry that I am reading in with a Stream Reader :-
sr.ReadLine().Replace(Environment.NewLine, String.Empty);
EDIT: In case the end of line is not \r\n but \n you can use regex:
\r\n
\n
Line = Regex.Replace(sr.ReadLine(), @"(\r\n|\n)", String.Empty);