Sha256: 005c6ad4d565d08da8d98cbd7dcf4ae86a116c44d730b9c3a81be0147082d975
Contents?: true
Size: 650 Bytes
Versions: 3
Compression:
Stored size: 650 Bytes
Contents
# this method views an existing address record def deletecontactrecord require 'fileutils' if @a_viewnamedata $currentnametext = @a_viewnamedata end fileName = $addressfiles_directory + "/" + $currentnametext + ".nam" $stderr.print fileName begin # exception trapped block File.delete(fileName) fileNamephoto = $addressfiles_directory + "/" + $currentnametext + ".jpg" if File.exist?(fileNamephoto) File.delete(fileNamephoto) end rescue SystemCallError, StandardError $stderr.print "system call error: " + $! end # exception rescue end
Version data entries
3 entries across 3 versions & 1 rubygems