#!/usr/bin/env ruby # -*- coding: utf-8 -*- lines = [] File.open("deta.txt","r")do lfl f.each_line do lil lines.push(l) end end p lines