how to compare carriage return

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rajeev rajesh
    New Member
    • Aug 2011
    • 1

    how to compare carriage return

    How check know carrriage return value in c.
  • GaryTexmo
    Recognized Expert Top Contributor
    • Jul 2009
    • 1501

    #2
    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

    Working...