File.open("example.txt", "r") do |file|
  while !file.eof?
    puts file.readline
  end
end