From: 7stud -- Date: 2007-10-04T21:16:58+09:00 Subject: Re: opinion on a simple method 7stud -- wrote: > > Adding this line corrects mine, and it doesn't slow it down much: > > IO.foreach("data.txt") do |line| > line.each(" ") do |word| > next if word == " " > print word.capitalize > end > end --input:-- the Bourne ultimatum harry Potter and the Order of the phoenix mission impossible --output:-- The Bourne Ultimatum Harry Potter And The Order Of The Phoenix Mission Impossible -- Posted via http://www.ruby-forum.com/.