Naresh Ramaswamy wrote:
> Observed that ruby outputs them into next line :(
> Please let me know the solution for the same.

String#chomp

i.e.

$filename = rio('some.txt').lines[0..0].chomp
... etc
-- 
Posted via http://www.ruby-forum.com/.