array_of_lines = File.readlines("foo.txt") puts "I got " + array_of_lines.size.to_s + " number of lines"
January 08, 2010 at 10:56 am