Sha256: 86b64b38d06196c19c99e3ad383a223788fe68fe75278e62670c03e9e5efb2b7
Contents?: true
Size: 699 Bytes
Versions: 8
Compression:
Stored size: 699 Bytes
Contents
def viewaddressesconfiguration require 'fileutils' begin # exception trapped block Dir.chdir($progdir) rwdaddrssesconfigurationfile = File.join( "configuration", "rwdaddresses.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
Version data entries
8 entries across 8 versions & 1 rubygems