View Single Post
Old 03-17-2003, 10:06 AM   #5 (permalink)
joe_bruin
LOAD "*",8,1
 
Join Date: Feb 2003
Location: la.ca.us
Posts: 254
joe_bruin is on a distinguished road
\n = linefeed
\r = carriage return

text on unix uses \n as the newline separator.
macs use \r
dos/windows uses \r\n (see visual basic's vbCrLf)

it doesn't really matter which one you use (since html ignores them), although traditionally "\n" is used (http uses \n). most text editors are smart enough nowadays to figure out what to do with non-system newline characters, although sometimes you'll come across a dumb one that doesn't, and then you'll see weird boxes or other characters where newlines should be (ex: old versions of notepad).
joe_bruin is offline   Reply With Quote