Hi,

In message "[ruby-talk:9469] Re: reading an entire file as a string"
    on 01/01/18, Dave Thomas <Dave / PragmaticProgrammer.com> writes:

|>   (a) exactly like:
|> 
|>         f = open(path)
|>         begin
|>           f.read(*args)
|>         ensure
|>           f.close
|>         end
|> 
|>   (b) takes no argument, to read whole file always.
|> 
|>   (c) something else.

|I'd vote for 'a'.

How about IO::read(path[,size[,offset]]), where offset is the optional
position to start reading?

|While we're talking about IO, what do you think about starting to
|deprecate the "|" form of the various IO:: and Kernel.open calls, and
|instead favoring IO::popen? The "|" forms are a definite Perl-ism.

I think I'm not going to remove it.  But I agree with documenting it
explicitly as Perl-ism.  By the way, "|" is actually Tcl-ism.

							matz.