Hi

I created a file and put a single character in it.
When reading it with IO.readlines, a newline is appended.

irb(main):001:0> IO.readlines("t")
["a\n"]

This behaviour also does not seem to be affected by
$/ either.

Why the newline?

=========================================================
Jim Freeze
jim / freeze.org
---------------------------------------------------------
Today is a fine day for Ruby programming.
http://www.freeze.org
=========================================================