Sha256: 4441a33eb001abd7fbfae63f0bc08276e32b543a27b2f33b37ecd6907932cf5c
Contents?: true
Size: 725 Bytes
Versions: 13
Compression:
Stored size: 725 Bytes
Contents
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
Version data entries
13 entries across 13 versions & 2 rubygems