Topic: UNIX Line break style
I was wonder if someone could explain, or link me to information on the UNIX line break style. Thanks.
You are not logged in. Please login or register.
PunBB Forums → Programming → UNIX Line break style
I was wonder if someone could explain, or link me to information on the UNIX line break style. Thanks.
On UNIX/Linux/BSD systems, a line break is made up of one character, a line feed (\n). On Windows, a line break is a carriage return followed by a line break (\r\n). On old MacOS systems, a line break is just a carriage return (\r).
What about Mac OSX? Being UNIX-based I would think it would be \n now...?
Yes, MacOS X uses \n linebreaks.
It's only Windows in these days who are a bit old-fasioned and doesn't convert to line-feed (\n).
PunBB Forums → Programming → UNIX Line break style
Powered by PunBB, supported by Informer Technologies, Inc.