From: Steve Merrick Date: 2002-06-20T18:28:00+09:00 Subject: Re: Newbie question Thanks all! As a C++ programmer, I'm not used to looking for mixins, so I failed to notice FileTest. :-( The 'dir' project continues, and I'm learning lots. :-) -- Steve Merrick "Who cares, wins" "Han Holl" wrote in message news:3D10F63B.8030502@pobox.com... > Steve Merrick wrote: > > Have a look at Kernel#test for the entire Perl/shell scala of tests. > > >My first Ruby program is an equivalent of the MS-DOS 'dir' command - > >just for learning purposes, you understand! ;-) > > > >I can't seem to find the method that will tell me whether or not a file > >exists. File.stat("filename").file? (and similar methods) throw a system > >error if the file doesn't exist. > > > >Help a newbie out? TIA. :-) > > > >-- > >Steve Merrick > > > >"Who cares, wins" > > > > > > > > > > > > > >