Sha256: 1847fc94919b6a70e3f5e1d0cabb477d6ccc908750f5eae7e21f48eb17f23c16

Contents?: true

Size: 921 Bytes

Versions: 2

Compression:

Stored size: 921 Bytes

Contents

  def viewnamedata 
        require 'fileutils'
        $currentnametext = "%s" % [@a_viewnamedata]
	      photoname = $currentnametext + ".png"
        begin # exception trapped block
        path_to = File.join( "rwd_files", "contacttmp.png" )
        path_from = File.join($addressfiles_directory, photoname )
        if ! File.exist?(path_from)
        path_from = File.join($addressfiles_directory,"nophoto.png" )
        end
         
         Dir.chdir($progdir)
        FileUtils.cp(path_from, path_to)
         sleep $photodelay
	      fileName = $addressfiles_directory + "/" + $currentnametext + ".nam"
        
	      fd = File.open(fileName,"r")
	      @viewnamedatadisplay = " "
	      while ! fd.eof?
	        @viewnamedatadisplay = fd.read
	      end
        fd.close
        rescue SystemCallError, StandardError
            $stderr.print "system call error: " + $!
        end # exception rescue

  end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rwdaddresses-0.9 code/gl3addresses/gl3viewnamedata.rb
rwdaddresses-0.91 code/gl3addresses/gl3viewnamedata.rb