From: "Morris, Chris" Date: 2001-01-16T23:30:56+09:00 Subject: [ruby-talk:9377] fileExists function? I'm looking for a fileExists function and coming up short at the moment. I tried this: if !File.stat('sample.txt').file? ... but the File.stat method raises an exception, skipping my if test. I could trap the exception, but that seems a bit much. Chris Morris chrism@snellingcorp.com