Sha256: 604f9cc76d403b0e4878a684c4c4515698560da93069233cdbb5f01b3a51cc4b
Contents?: true
Size: 699 Bytes
Versions: 5
Compression:
Stored size: 699 Bytes
Contents
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
Version data entries
5 entries across 5 versions & 1 rubygems