Jesse Crockett wrote:
>    wrote: 
>> Do you want to do n.split.join(", ") ?
> 
> Yes.  How do I put them into a CSV file?  Thank you.

Supposing you're reading from stdin or from files passed as argument and 
you're writing to stdout:

ARGF.each { |line| puts  line.split.join(', ') }

If you want to output to file

output_file = open ('output.cvs', 'w')
ARGF.each { |line| output_file.puts  line.split.join(', ') }

[a beginner in Ruby]

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