On Mon, Nov 15, 2010 at 10:19 AM, Lark Work <lars_werkman / hotmail.com> wrote: > hi thanks for your reply i going to try it what i want is that is just > prints it in > > ¨Âõô¢Îáíåº £ûÀäáôáÛ°Ý£ûÀäáôáÛ±Ýý¢ > ¨Âõô¢Ãáììîáíåº £ûÀäáôáÛ²Ýý¢ > ¨Âõô¢Áçå£ûÀäáôáÛ³Ýý¢ > > data0 = name > data1 = lastname > data2 = callname > and data3 = age > > and thats what i want to call from the txt file If you just want to print it, I wouldn't bother with classes or anything more complex: File.foreach("data.txt") do |line| name,last_name,call_name, age = line.chomp.split(",") puts "Name: #{name} #{last_name}" puts "Callname: #{call_name}" puts "Age #{age}" end This should suffice. Jesus.