7stud -- wrote in post #998709:
> That may or may not make a difference to a particular program.
>

One way to avoid the newline conversion is to use the actualy ascii code 
for a newline instead of "\n":


"\r\n" in octal:

"\015\012"

"\r\n" in hex:

"x0D\x0A"

To avoid the ugliness of those escape sequences, perl has the constant 
CRLF, which can be used in strings, when correct reading of the data 
requires that line endings be marked by exactly one "\r" and one "\n". 
However, I don't think ruby copied that feature from perl.

-- 
Posted via http://www.ruby-forum.com/.