From: Bernard Kaiflin Date: 2010-11-17T13:27:12+09:00 Subject: Re: please help load from txt Second, some comments to your last post : - Class_choose.new, in case of wrong answer, creates a new instance of Class_choose (a certain number of bytes of RAM) and recursively calls choose (after millions of errors, it will fill in all the available memory) - new is used to create an object. If you don't use it, as in Class_load.new("data.txt"), you can as well define a class method, for example Class_load.openOn("data.txt"). A class method is defined with def self.aMethod or def aClass.aMethod. - a class is rather used to represent something (a bank account, a person, a vehicle) than to perform a single action (as in Class_choose, Class_new and Class_load). Again, Class_load.new creates an instance of Class_load, which you do not use. Having said that, con gra tulations for what you have already realized. Next comes one possible solution. -- Posted via http://www.ruby-forum.com/.