I first found this problem when looking at a Yodle engineering challenge question.
Basically you this takes a file with lines of numbers and finds the largest sum by totaling the largest adjacent numbers for each new line.
triangle_array = []
f = File.open("triangle.txt", "r")
f.each_line do |line|
triangle_array << line.split.map(&:to_i)