Daniel Berger wrote:
> On Oct 7, 12:07 am, Nobuyoshi Nakada <n... / ruby-lang.org> wrote:

> >     if /%!PS-Adobe/ =~ IO.open(file) {|f| f.gets}
> >       File.rename(file, file + ".eps")
> >     end
>
> Why would he need to open the file at all?

Because he's checking the first line of the file, not the filename.


-- 
Jabber: sepp2k / jabber.org
ICQ: 205544826