On Sun, Aug 14, 2011 at 4:37 PM, amir e. <aef1370 / gmail.com> wrote:

> Hi
> I don't understand meaning of thing that , this code return :
>
> File.open("a.txt")do |i|
>  puts i
> end
>
> please explain me.
> and please explain me what is the difference between that code and below
> code :
>
> File.open("a.txt").each do |i|
>  puts i
> end
>
>
> thanks
>
> --
> Posted via http://www.ruby-forum.com/.
>