>>>>> "J" == Jim Freeze <jim / freeze.org> writes:

J> When reading it with IO.readlines, a newline is appended.

 Are you sure that this is ruby which has added the newline ?

pigeon% ls -l t
-rw-r--r--    1 ts       ts              1 Nov 20 17:14 t
pigeon% 

pigeon% irb
irb(main):001:0> IO.readlines("t")
["a"]
irb(main):002:0> 
pigeon% 


Guy Decoux