File.open("adat.txt", "r:UTF-8") do |f| while line = f.gets puts line end end