From: Lark Work Date: 2010-11-16T05:07:44+09:00 Subject: Re: please help load from txt he jezus i'm so sorry but no i'm running of the hook i would really apriciete if you could put it into my scipt: class_choose is the begining of my script and that is what i call up: class Class_choose def initialize puts "Create new?" puts "Yes / No / Load" choose end def choose @choose = gets.chomp if @choose == "yes" puts "" Class_new.new elsif @choose == "no" puts "" puts "exit" elsif @choose == "load" puts "" Class_load.new else puts "" puts "error" Class_choose.new end end end class Class_load def initialize File.foreach("data.txt") do |line| @name,@last_name,@call_name, @age = line.chomp.split(",") show_load_data end end def show_load_data puts "Name: #{@name} #{@last_name}" puts "Callname: #{@call_name}" puts "Age: #{@age}" end end thanks lark -- Posted via http://www.ruby-forum.com/.