Replaced deprecated #lines with #each_line
Got rid of the compilation warnings