From: "Jan E." Date: 2012-11-29T05:14:58+09:00 Subject: Re: sorting data from a file You can argue all day long about which solution is easier to understand and better for a beginner. But personally, I'm more interested in which methods *he* knows. If he knows File.readlines, that's fine. Then we can use it. If he knows File.foreach, that's fine, too. I know Ruby programmers love endless discussions about the best solution. But it would be great if maybe this time you could not do that and just help. @ Ismail: Please write down everything that you currently have (ideas, code, whatever). Your code snippet for the smallest number is already useful. You'll be able to use that later. -- Posted via http://www.ruby-forum.com/.