From: Pieter Steyn Date: 2006-05-15T17:20:13+09:00 Subject: Re: Test if file exists Thanks alot! That's so simple, hehe! On Monday 15 May 2006 10:11, Nicolas Despr�s wrote: > On 5/15/06, Pieter Steyn wrote: > > Hi, > > Hi, > > [...] > > > How would I test if the arguments given (filename1 and 2) are actually > > files that exist? > > File.exists?(filename1) > > or > > require 'pathname' > Pathname.new(filename1).exists?