I am parsing a log file that contains several thousand lines of logs.
Each entry in the log ends with the Line Feed character \n.
However some of the lines have an embedded 'CR'character in. My parser should ignore those and not treat text following the CR character as a new line e.g
This represents one single line of text LF
This should CR also be one line of text LF
However using StreamReader.Readline the second line above is returned
also be one line of text
Does C# have a method that will return This should be one line of text - i.e. ignore the CR which is part of the logging information and not an indication that the end of the line has been reached?