From: Sebastian Hungerecker Date: 2007-10-07T22:30:04+09:00 Subject: Re: The old File.rename not working again. . . . Daniel Berger wrote: > On Oct 7, 12:07 am, Nobuyoshi Nakada 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