How check know carrriage return value in c.
how to compare carriage return
Collapse
X
-
Tags: None
-
By C, do you mean C# (as you're in the C# forum)? If you actually meant C, you may want to post your question there; however, I think it's mostly the same.
For the most part, you can check for '\n' but lately it seems you may also want to check for the string "\r\n". In .NET, this string is contained within a Global static class called Environment, and is in the NewLine property.
Hopefully that's what you were looking for :)
Comment