Yes, but I tried the code and it is still not working.  I used a puts 
statement to output the results to see whether the "\n" text was truly 
being replaced by a tab.

#!/usr/bin/ruby -w

IO.readlines("input.txt").each do |line|
  lineItem = line.gsub(/\\n/, "\t")
  puts lineItem.split("\t")
end

However, the results were that the output still had \n text.

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