From: Daniel Berger Date: 2007-10-07T22:44:51+09:00 Subject: Re: The old File.rename not working again. . . . On Oct 7, 7:30 am, Sebastian Hungerecker wrote: > 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. Oops, my mistake. Regards, Dan