IO.readlines « File Directory « Ruby






1.Read lines into an array
2.Get the longest line