Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Aug 2002
    Location
    england
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Can anyone tell what \r does please

    I have been looking at peoples scripts and I have seen a \r next to their \n's can anyone tell me what it does please

  • #2
    Regular Coder
    Join Date
    Jun 2002
    Location
    The Planet Earth Code Poet: True
    Posts
    282
    Thanks
    0
    Thanked 1 Time in 1 Post
    I believe this has to do with difference between "return" and "line feed"

    When scripting I have never needed anything ither than \n to break the line.

  • #3
    New to the CF scene
    Join Date
    Aug 2002
    Location
    england
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Thank you

    Thank you again

  • #4
    Senior Coder
    Join Date
    Jun 2002
    Location
    frankfurt, german banana republic
    Posts
    1,848
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Thank you

    AFAIK the "\r\n" indicates a line feed in files on windows. Other OS like Unix use "\n", and I think on MacOS it is "\r", though I'm not completely sure, since they now also changed the framework of their OS. Can anyone more Mac-savy than me confirm what I just said?


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •