Thanks for the help! I have a question though regarding Peter's reply:
>> s = 'car\nplane\ntrain \n boat' # because of ' the \n is not interpreted as
newline
Currently, my code is:
IO.readlines("input.txt").each do |line|
lineItem = line.gsub(/\\n/, "\t")
end
How would I use the ' ' with the line variable?
--
Posted via http://www.ruby-forum.com/.