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