In your wording, "current" is a variable, but it has nothing assigned to 
it so it is nil.
If you want to show the current value of "i", then just write "puts i".

If you want to gather each line for some sort of comparison I'd 
personally read each into an array with something like "my_array.push" 
and then compare two arrays afterwards.

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