I somehow cannot determine if a string is a newline or not. The line I'm using is read from a file written by Ultraedit using DOS Terminators CR / LF. I assume this will be equal to "\ r \ n" or Environment.NewLine in C #. However, when I perform such a comparison, it always returns false:
if(str==Environment.NewLine)
Anyone who knows what is going on here?
source share