# this method views an existing address record def deletegemspecrecord require 'fileutils' if @a_viewgemspecdata $currentgemspectext = @a_viewgemspecdata end fileName = $gemspec_directory + "/" + $currentgemspectext + ".gemspec" $stderr.print fileName begin # exception trapped block if File.exist?(fileName) File.delete(fileName) end rescue SystemCallError, StandardError $stderr.print "system call error: " + $! end # exception rescue end