On Oct 7, 7:30 am, Sebastian Hungerecker <sep... / googlemail.com>
wrote:
> 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.

Oops, my mistake.

Regards,

Dan