From: ts Date: 2004-01-05T01:19:55+09:00 Subject: Re: When did IO::read appear? >>>>> "B" == Bil Kleb writes: B> What's the idiomatic workaround for this sort of thing? redefine it, something like (not tested) unless IO::respond_to?(:read) def IO::read(file, lgth = nil, offset = 0) Kernel::open(file) do |io| io.seek(offset) if !offset.zero? io.read(lgth) end end end Guy Decoux