From: "Jesús Gabriel y Galán" Date: 2010-05-14T16:27:41+09:00 Subject: Re: How to check the file is available or not. On Fri, May 14, 2010 at 7:57 AM, KingMaker KingMaker wrote: > How to check the file is available or not. > write this simple code for checking the file. > but if file not found they print the first condition. > > > if(contents = File.read("c:/test/test.txt")) >              log.debug "Text File Available.....!!!!!!!!" >        else >              log.debug "File not Available" >              break >        end if test ?e, "c:/test/test.txt" Jesus.