def viewrwdschedulesconfiguration require 'fileutils' begin # exception trapped block Dir.chdir($progdir) rwdschedulesconfigurationfile = File.join( "configuration", "rwdschedule.cnf" ) if File.exist?(rwdschedulesconfigurationfile) fd = File.open(rwdschedulesconfigurationfile,"r") @rwdschedulesconfigurationtext = " " while ! fd.eof? @rwdschedulesconfigurationtext = fd.read end fd.close else @rwdschedulesconfigurationtext = "File error" end rescue SystemCallError, StandardError $stderr.print "system call error: " + $! @rwdschedulesconfigurationtext = "File error" end # exception rescue end