n = 3 points = DATA.read.split("\n") STDOUT.puts points.size points.each do |row| STDOUT.puts row end STDOUT.flush __END__ 0 0 1 0 0 1