Sha256: 02715d82e703ab15667b72c5871c9ced1fdc6abb9c0f17b09810fab776123789
Contents?: true
Size: 704 Bytes
Versions: 3
Compression:
Stored size: 704 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
3 entries across 3 versions & 1 rubygems