Sha256: 8b4709c32c01dc0d31c3d02060a23c02074447a0d9d6ad177a13019ee21932ae
Contents?: true
Size: 643 Bytes
Versions: 5
Compression:
Stored size: 643 Bytes
Contents
# this method deletes an 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
5 entries across 5 versions & 1 rubygems