From: KingMaker KingMaker Date: 2010-05-14T14:57:16+09:00 Subject: How to check the file is available or not. 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 -- Posted via http://www.ruby-forum.com/.