On Thu, Dec 2, 2010 at 7:01 PM, Jester Mania <jester_b84 / hotmail.com> wrote=
:
> Thanks for the help! =A0I have a question though regarding Peter's reply:
>
>>> s =3D 'car\nplane\ntrain \n boat' # because of ' the \n is not interpre=
ted as
> newline
>
>
> Currently, my code is:
>
> IO.readlines("input.txt").each do |line|
> =A0lineItem =3D 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.