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