#!/usr/bin/ruby # line_endings.rb File.open("line_endings.txt").each('.') do |line| puts line end