7stud -- wrote: > > File.open("data.txt") do |file| > file.each() do |line| > line.each(" ") do |word| > print word.capitalize > end > end > end > Ahh. And stealing from Alex and Robert: IO.foreach("data.txt") do |line| line.each(" ") do |word| print word.capitalize end end -- Posted via http://www.ruby-forum.com/.