From: "Jesús Gabriel y Galán" Date: 2010-12-03T03:03:51+09:00 Subject: Re: Text Parsing Help On Thu, Dec 2, 2010 at 7:01 PM, Jester Mania wrote: > 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? You don't need it, because what you read from the file are already the character '\' and the character 'n'. Peter needed it because he was typing Ruby string literals. Jesus.