...

View Full Version : Can anyone tell what \r does please



Granger9
08-01-2002, 05:04 PM
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

JohnKrutsch
08-01-2002, 05:08 PM
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.

Granger9
08-01-2002, 05:09 PM
Thank you again

mordred
08-01-2002, 05:40 PM
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?



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum