From: Jester Mania Date: 2010-12-03T04:10:44+09:00 Subject: Re: Text Parsing Help 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/.