How do I remove the carriage return character (\\r) and the new line character(\\n) from the end of a string?
(\\r)
(\\n)
String temp = s.Replace("\r\n","").Trim();
s being the original string. (Note capitals)
s